From: nds Date: Tue, 3 Nov 2015 05:50:31 +0000 (+0300) Subject: Compilation correction. X-Git-Tag: V_2.0.0_alfa1~6^2~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=78139f90f3375a1c8589336d64214ff94c6bcc0a;p=modules%2Fshaper.git Compilation correction. --- diff --git a/src/XGUI/XGUI_PropertyPanel.cpp b/src/XGUI/XGUI_PropertyPanel.cpp index 197f79442..d44c7d1d5 100755 --- a/src/XGUI/XGUI_PropertyPanel.cpp +++ b/src/XGUI/XGUI_PropertyPanel.cpp @@ -233,13 +233,15 @@ void XGUI_PropertyPanel::activateNextWidget() void XGUI_PropertyPanel::activateWidget(ModuleBase_ModelWidget* theWidget) { + std::string aPreviosAttributeID; + if(myActiveWidget) + aPreviosAttributeID = myActiveWidget->attributeID(); + // Avoid activation of already actve widget. It could happen on focusIn event many times if (setActiveWidget(theWidget)) { - if (myActiveWidget) { - emit widgetActivated(myActiveWidget); - } else if (!isEditingMode()) { - emit noMoreWidgets(); - //setFocusOnOkButton(); + emit widgetActivated(myActiveWidget); + if (!myActiveWidget && !isEditingMode()) { + emit noMoreWidgets(aPreviosAttributeID); } } }