From 3d5d336ca5036683c3c255805a1d5b749932af1f Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 11 Dec 2015 15:42:15 +0300 Subject: [PATCH] #1105 Abort boolean operation shows warning dialog twice --- src/XGUI/XGUI_PropertyPanel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/XGUI/XGUI_PropertyPanel.cpp b/src/XGUI/XGUI_PropertyPanel.cpp index 762bde305..413059e2a 100755 --- a/src/XGUI/XGUI_PropertyPanel.cpp +++ b/src/XGUI/XGUI_PropertyPanel.cpp @@ -334,8 +334,7 @@ void XGUI_PropertyPanel::closeEvent(QCloseEvent* theEvent) { ModuleBase_Operation* aOp = myOperationMgr->currentOperation(); if (aOp) { - if (myOperationMgr->canStopOperation(aOp)) { - myOperationMgr->abortAllOperations(); + if (myOperationMgr->abortAllOperations()) { theEvent->accept(); } else theEvent->ignore(); -- 2.39.2