From 6eb1966f2a5123ff88f4e85e029ee17f0e310075 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 13 Apr 2015 10:01:02 +0300 Subject: [PATCH] Disconnect of the selectionChanged signal --- src/PartSet/PartSet_WidgetSketchLabel.cpp | 36 +++++++++++------------ src/XGUI/XGUI_Workshop.cpp | 4 +-- 2 files changed, 20 insertions(+), 20 deletions(-) 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; -- 2.39.2