From 9edda8a153d0b728f5da999cb2d9cea0305d5726 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 23 May 2014 17:16:02 +0400 Subject: [PATCH] Redo correction. --- src/XGUI/XGUI_Workshop.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(); } -- 2.39.2