From: nds Date: Fri, 23 May 2014 13:16:02 +0000 (+0400) Subject: Redo correction. X-Git-Tag: V_0.2~12^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9edda8a153d0b728f5da999cb2d9cea0305d5726;p=modules%2Fshaper.git Redo correction. --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index bb8a561ac..2c9efd296 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -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(); }