Gui: Handle exception when trying to start editing an object

This commit is contained in:
wmayer
2025-03-16 14:03:27 +01:00
committed by Ladislav Michl
parent da6bafe246
commit dec434e153
2 changed files with 9 additions and 3 deletions

View File

@@ -648,6 +648,7 @@ bool Document::trySetEdit(Gui::ViewProvider* p, int ModNum, const char *subname)
Application::Instance->setEditDocument(this);
if (!d->tryStartEditing(vp, obj, _subname.c_str(), ModNum)) {
d->setDocumentNameOfTaskDialog(getDocument());
return false;
}