[Sketcher] Fix segmentation fault in ViewProviderSketch::setEdit

Closes #8979
This commit is contained in:
xtemp09
2023-03-25 00:02:32 +01:00
committed by wwmayer
parent 048b358c01
commit a65a7f6740
+1 -1
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;
}