From f39b615e10f48ab13b8346c1e0b4c64500d44f51 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 18 Sep 2015 18:48:41 +0300 Subject: [PATCH] #684 Icon correction should be done only in create operation. --- src/PartSet/PartSet_SketcherMgr.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 6127d1c76..dc983a46a 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -919,7 +919,8 @@ void PartSet_SketcherMgr::stopSketch(ModuleBase_Operation* theOperation) void PartSet_SketcherMgr::startNestedSketch(ModuleBase_Operation* theOperation) { connectToPropertyPanel(true); - QApplication::setOverrideCursor(QCursor(QIcon(":pictures/button_plus.png").pixmap(20,20))); + if (isNestedCreateOperation(theOperation)) + QApplication::setOverrideCursor(QCursor(QIcon(":pictures/button_plus.png").pixmap(20,20))); } void PartSet_SketcherMgr::stopNestedSketch(ModuleBase_Operation* theOp) @@ -928,7 +929,8 @@ void PartSet_SketcherMgr::stopNestedSketch(ModuleBase_Operation* theOp) myIsResetCurrentValue = false; myIsMouseOverViewProcessed = true; operationMgr()->onValidateOperation(); - QApplication::restoreOverrideCursor(); + if (isNestedCreateOperation(theOp)) + QApplication::restoreOverrideCursor(); } void PartSet_SketcherMgr::commitNestedSketch(ModuleBase_Operation* theOperation) -- 2.39.2