]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
refs #30 - Sketch base GUI: create, draw lines
authornds <natalia.donis@opencascade.com>
Thu, 15 May 2014 10:59:31 +0000 (14:59 +0400)
committernds <natalia.donis@opencascade.com>
Thu, 15 May 2014 10:59:31 +0000 (14:59 +0400)
Do not perform the sketch operation abort.

src/XGUI/XGUI_Workshop.cpp

index aa2318703d9da9311e7c5c0cc869d861dc718571..3944b5f85dac6c6bfef9275e030b573b598fc308 100644 (file)
@@ -470,7 +470,7 @@ void XGUI_Workshop::onUndo()
   objectBrowser()->setCurrentIndex(QModelIndex());
   boost::shared_ptr<ModelAPI_PluginManager> aMgr = ModelAPI_PluginManager::get();
   boost::shared_ptr<ModelAPI_Document> aDoc = aMgr->rootDocument();
-  if (!operationMgr()->abortOperation())
+  if (aDoc->isOperation() && !operationMgr()->abortOperation())
     return;
   aDoc->undo();
   updateCommandStatus();