]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Redo correction.
authornds <natalia.donis@opencascade.com>
Fri, 23 May 2014 13:16:02 +0000 (17:16 +0400)
committernds <natalia.donis@opencascade.com>
Fri, 23 May 2014 13:16:02 +0000 (17:16 +0400)
src/XGUI/XGUI_Workshop.cpp

index bb8a561ac9866f51cba233e8ca3106d500e127cd..2c9efd2965bc95ca680ad9326aafde225423085c 100644 (file)
@@ -530,6 +530,8 @@ void XGUI_Workshop::onRedo()
   objectBrowser()->treeView()->setCurrentIndex(QModelIndex());
   PluginManagerPtr aMgr = ModelAPI_PluginManager::get();
   DocumentPtr aDoc = aMgr->rootDocument();
+  if (aDoc->isOperation())
+    operationMgr()->abortOperation();
   aDoc->redo();
   updateCommandStatus();
 }