Merge pull request #20160 from karliss/popup-parent

Add missing parent for messagbox and other popups.
This commit is contained in:
Chris Hennes
2025-03-17 00:16:49 -05:00
committed by GitHub
22 changed files with 33 additions and 24 deletions

View File

@@ -2980,7 +2980,7 @@ bool ViewProviderSketch::setEdit(int ModNum)
if (sketchDlg && sketchDlg->getSketchView() != this)
sketchDlg = nullptr;// another sketch left open its task panel
if (dlg && !sketchDlg) {
QMessageBox msgBox;
QMessageBox msgBox(Gui::getMainWindow());
msgBox.setText(tr("A dialog is already open in the task panel"));
msgBox.setInformativeText(tr("Do you want to close this dialog?"));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);