From: nds Date: Mon, 13 Apr 2015 07:01:02 +0000 (+0300) Subject: Disconnect of the selectionChanged signal X-Git-Tag: V_1.1.0~45 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6eb1966f2a5123ff88f4e85e029ee17f0e310075;p=modules%2Fshaper.git Disconnect of the selectionChanged signal --- diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index 42d4cd3ed..494513096 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -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 PartSet_WidgetSketchLabel::plane() const diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 08d66b704..985f1f307 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -93,8 +93,8 @@ #include #endif -#define DEBUG_FEATURE_CREATED -#define DEBUG_FEATURE_REDISPLAY +//#define DEBUG_FEATURE_CREATED +//#define DEBUG_FEATURE_REDISPLAY QMap XGUI_Workshop::myIcons;