From 1f741aa511e898849e46ed14515fce416fe32acb Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 26 Jun 2020 13:52:55 +0200 Subject: [PATCH] [skip ci] do not set attribute WA_DeleteOnClose when loading FreeCAD GUI from Python --- src/Main/FreeCADGuiPy.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Main/FreeCADGuiPy.cpp b/src/Main/FreeCADGuiPy.cpp index 32f82207a6..0fd4dd6653 100644 --- a/src/Main/FreeCADGuiPy.cpp +++ b/src/Main/FreeCADGuiPy.cpp @@ -288,7 +288,6 @@ QWidget* setupMainWindow() Base::PyGILStateLocker lock; PyObject* input = PySys_GetObject("stdin"); Gui::MainWindow *mw = new Gui::MainWindow(); - mw->setAttribute(Qt::WA_DeleteOnClose); hasMainWindow = true; QIcon icon = qApp->windowIcon();