From: nds Date: Fri, 18 Sep 2015 15:48:41 +0000 (+0300) Subject: #684 Icon correction should be done only in create operation. X-Git-Tag: V_1.4.0~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f39b615e10f48ab13b8346c1e0b4c64500d44f51;p=modules%2Fshaper.git #684 Icon correction should be done only in create operation. --- 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)