]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Disconnect of the selectionChanged signal
authornds <natalia.donis@opencascade.com>
Mon, 13 Apr 2015 07:01:02 +0000 (10:01 +0300)
committernds <natalia.donis@opencascade.com>
Mon, 13 Apr 2015 07:01:02 +0000 (10:01 +0300)
src/PartSet/PartSet_WidgetSketchLabel.cpp
src/XGUI/XGUI_Workshop.cpp

index 42d4cd3edecc0d737ba7f675269b026f89cea5c1..494513096bad34b9f405966c00bb294f29f68bb9 100644 (file)
@@ -138,25 +138,25 @@ void PartSet_WidgetSketchLabel::onSelectionChanged()
         }
       }
     }
-    // 5. Clear text in the label
-    myLabel->setText("");
-    myLabel->setToolTip("");
-    disconnect(myWorkshop->selector(), SIGNAL(selectionChanged()), 
-               this, SLOT(onSelectionChanged()));
-    // 6. deactivate face selection filter
-    activateFilters(myWorkshop->module()->workshop(), false);
-
-    // 7. Clear selection mode and define sketching mode
-    //XGUI_Displayer* aDisp = myWorkshop->displayer();
-    //aDisp->closeLocalContexts();
-    emit planeSelected(plane());
-    //setSketchingMode();
-
-    // 8. Update sketcher actions
-    XGUI_ActionsMgr* anActMgr = myWorkshop->actionsMgr();
-    anActMgr->update();
-    myWorkshop->viewer()->update();
   }
+  // 5. Clear text in the label
+  myLabel->setText("");
+  myLabel->setToolTip("");
+  disconnect(myWorkshop->selector(), SIGNAL(selectionChanged()), 
+              this, SLOT(onSelectionChanged()));
+  // 6. deactivate face selection filter
+  activateFilters(myWorkshop->module()->workshop(), false);
+
+  // 7. Clear selection mode and define sketching mode
+  //XGUI_Displayer* aDisp = myWorkshop->displayer();
+  //aDisp->closeLocalContexts();
+  emit planeSelected(plane());
+  //setSketchingMode();
+
+  // 8. Update sketcher actions
+  XGUI_ActionsMgr* anActMgr = myWorkshop->actionsMgr();
+  anActMgr->update();
+  myWorkshop->viewer()->update();
 }
 
 std::shared_ptr<GeomAPI_Pln> PartSet_WidgetSketchLabel::plane() const
index 08d66b704b7a38d7572d071074ce7897b7511dc2..985f1f307e6b9ac67f19547c9f8fa9b35720b053 100644 (file)
@@ -93,8 +93,8 @@
 #include <dlfcn.h>
 #endif
 
-#define DEBUG_FEATURE_CREATED
-#define DEBUG_FEATURE_REDISPLAY
+//#define DEBUG_FEATURE_CREATED
+//#define DEBUG_FEATURE_REDISPLAY
 
 QMap<QString, QString> XGUI_Workshop::myIcons;