Merge pull request #647 from kkremitzki/python_wordwrap_fix

Fix preferences Python console bug
This commit is contained in:
wwmayer
2017-03-24 10:22:01 +01:00
committed by GitHub

View File

@@ -128,8 +128,9 @@ void DlgGeneralImp::saveSettings()
RecentFiles->onSave();
SplashScreen->onSave();
PythonWordWrap->onSave();
PythonConsole* pcPython = new PythonConsole(this);
QWidget* pc = DockWindowManager::instance()->getDockWindow("Python console");
PythonConsole *pcPython = static_cast<PythonConsole*>(pc);
bool pythonWordWrap = App::GetApplication().GetUserParameter().
GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("General")->GetBool("PythonWordWrap", true);