TaskAttacher: Remove 'reset edit' causing trouble to assembly (#25277)

This commit is contained in:
PaddleStroke
2025-11-15 17:13:56 +01:00
committed by GitHub
parent 15d9e14851
commit 5da1e3d899

View File

@@ -1506,8 +1506,6 @@ bool TaskDlgAttacher::accept()
);
Gui::cmdAppObject(obj, "recompute()");
Gui::cmdGuiDocument(obj, "resetEdit()");
Gui::Command::commitCommand();
}
catch (const Base::Exception& e) {
@@ -1535,7 +1533,6 @@ bool TaskDlgAttacher::reject()
if (document) {
// roll back the done things
Gui::Command::abortCommand();
Gui::Command::doCommand(Gui::Command::Gui, "%s.resetEdit()", doc.getGuiDocumentPython().c_str());
Gui::Command::doCommand(Gui::Command::Doc, "%s.recompute()", doc.getAppDocumentPython().c_str());
}