[Sketcher] Fix segmentation fault in ViewProviderSketch::setEdit

Closes #8979
This commit is contained in:
xtemp09
2023-03-24 17:44:05 +07:00
committed by wwmayer
parent 048b358c01
commit a65a7f6740

View File

@@ -2811,7 +2811,7 @@ bool ViewProviderSketch::setEdit(int ModNum)
msgBox.setDefaultButton(QMessageBox::Yes);
int ret = msgBox.exec();
if (ret == QMessageBox::Yes)
Gui::Control().reject();
Gui::Control().closeDialog();
else
return false;
}