From 2d3d34a90d05d2309c60be32cd62ee3e81c4deb1 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 17 Sep 2015 08:04:03 +0300 Subject: [PATCH] Issue #986 activate field after apply constarint on one object It blocks signals of widgets, which are to be removed --- src/XGUI/XGUI_PropertyPanel.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/XGUI/XGUI_PropertyPanel.cpp b/src/XGUI/XGUI_PropertyPanel.cpp index 89cc82a27..d4bb4370b 100644 --- a/src/XGUI/XGUI_PropertyPanel.cpp +++ b/src/XGUI/XGUI_PropertyPanel.cpp @@ -84,8 +84,12 @@ void XGUI_PropertyPanel::cleanContent() if (myActiveWidget) myActiveWidget->deactivate(); - // as the widgets are deleted later, it is important that the signals - // of these widgets are not processed. An example of the error is issue 986. + /// as the widgets are deleted later, it is important that the signals + /// of these widgets are not processed. An example of the error is issue 986. + /// In the given case, the property panel is firstly filled by new widgets + /// of restarted operation and after that the mouse release signal come from + /// the widget of the previous operation (Point2d widget about mouse is released + /// and focus is out of this widget) QList::const_iterator anIt = myWidgets.begin(), aLast = myWidgets.end(); for (; anIt != aLast; anIt++) { -- 2.39.2