From: nds Date: Thu, 15 May 2014 10:59:31 +0000 (+0400) Subject: refs #30 - Sketch base GUI: create, draw lines X-Git-Tag: V_0.2~60 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=34a981282cec404955f9850aabf4015a97bcb57c;p=modules%2Fshaper.git refs #30 - Sketch base GUI: create, draw lines Do not perform the sketch operation abort. --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index aa2318703..3944b5f85 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -470,7 +470,7 @@ void XGUI_Workshop::onUndo() objectBrowser()->setCurrentIndex(QModelIndex()); boost::shared_ptr aMgr = ModelAPI_PluginManager::get(); boost::shared_ptr aDoc = aMgr->rootDocument(); - if (!operationMgr()->abortOperation()) + if (aDoc->isOperation() && !operationMgr()->abortOperation()) return; aDoc->undo(); updateCommandStatus();