From eac812dd1856b6c852fdce03460cce754a7cf673 Mon Sep 17 00:00:00 2001 From: mwganson Date: Sun, 14 Jul 2019 00:16:55 -0500 Subject: [PATCH] [macro toolbar walkthrough] change dialog parent to this instead of main window, for avoiding warning message when closing macro execute dialog --- src/Gui/DlgMacroExecuteImp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gui/DlgMacroExecuteImp.cpp b/src/Gui/DlgMacroExecuteImp.cpp index 404d7231b2..29f0244a7b 100644 --- a/src/Gui/DlgMacroExecuteImp.cpp +++ b/src/Gui/DlgMacroExecuteImp.cpp @@ -482,7 +482,7 @@ Note: your changes will be applied when you next switch workbenches\n")); if (!hasMacroCommand){ /** first the custom macros page dialog **/ if (!dlg) - dlg = new Gui::Dialog::DlgCustomizeImp(getMainWindow()); + dlg = new Gui::Dialog::DlgCustomizeImp(this); dlg->setAttribute(Qt::WA_DeleteOnClose); dlg->setModal(true); /** title is normally "Customize" **/ @@ -536,7 +536,7 @@ Note: your changes will be applied when you next switch workbenches\n")); dlg = 0; if (!dlg){ - dlg = new Gui::Dialog::DlgCustomizeImp(getMainWindow()); + dlg = new Gui::Dialog::DlgCustomizeImp(this); } dlg->setAttribute(Qt::WA_DeleteOnClose); dlg->setModal(true);