TaskAttacher: Remove 'reset edit' causing trouble to assembly (#25277)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user