[macro toolbar walkthrough] change dialog parent to this instead of main window, for avoiding warning message when closing macro execute dialog

This commit is contained in:
mwganson
2019-07-14 00:16:55 -05:00
committed by wmayer
parent 1aab80785c
commit eac812dd18

View File

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