Salome HOME
Make construction elements correctly selected: points, axes, planes
[modules/shaper.git] / src / Model / Model_Session.cpp
index 94f6cf2a87ca245ac8dce804f76e0ae36381f841..d264be4d34519940d9dd5cda5dbc55886f388248 100644 (file)
@@ -63,9 +63,15 @@ void Model_Session::finishOperation()
 void Model_Session::abortOperation()
 {
   ROOT_DOC->abortOperation();
+  // here the update mechanism may work after abort, so, supress the warnings about
+  // modifications outside of the transactions
+  bool aWasCheck = myCheckTransactions;
+  myCheckTransactions = false;
   static std::shared_ptr<Events_Message> anAbortMsg
     (new Events_Message(Events_Loop::eventByName("AbortOperation")));
   Events_Loop::loop()->send(anAbortMsg);
+  myCheckTransactions = true;
+  myCheckTransactions = aWasCheck;
 }
 
 bool Model_Session::isOperation()