]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#684 Icon correction should be done only in create operation.
authornds <nds@opencascade.com>
Fri, 18 Sep 2015 15:48:41 +0000 (18:48 +0300)
committernds <nds@opencascade.com>
Fri, 18 Sep 2015 15:49:07 +0000 (18:49 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index 6127d1c7639020ee3eeed157756afbb6bd002e0c..dc983a46ab911cdb95283782ec37d2125fc610a3 100644 (file)
@@ -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)