From 50a5f640378858a7d33565b8e9ddbd8c60a29bfc Mon Sep 17 00:00:00 2001 From: Kurt Kremitzki Date: Thu, 23 Mar 2017 20:19:35 -0500 Subject: [PATCH] Fix preferences Python console bug --- src/Gui/DlgGeneralImp.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Gui/DlgGeneralImp.cpp b/src/Gui/DlgGeneralImp.cpp index 6fcdc2643a..bfb841753a 100644 --- a/src/Gui/DlgGeneralImp.cpp +++ b/src/Gui/DlgGeneralImp.cpp @@ -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(pc); bool pythonWordWrap = App::GetApplication().GetUserParameter(). GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("General")->GetBool("PythonWordWrap", true);