if (myCurrentDir.isEmpty()) {
return onSaveAs();
}
+ SessionPtr aMgr = ModelAPI_Session::get();
+ if (aMgr->isAutoUpdateBlocked())
+ aMgr->blockAutoUpdate(false);
+
std::list<std::string> aFiles;
saveDocument(myCurrentDir, aFiles);
updateCommandStatus();
else
aCmd->setEnabled(myModule->canRedo());
}
+ else if (aId == "AUTOCOMPUTE_CMD") {
+ aCmd->setChecked(aMgr->isAutoUpdateBlocked());
+ }
else
// Enable all commands
aCmd->setEnabled(true);