Fix preferences Python console bug

This commit is contained in:
Kurt Kremitzki
2017-03-23 20:19:35 -05:00
parent b5e2df3133
commit b68fa265c6

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);