]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Compilation correction.
authornds <nds@opencascade.com>
Tue, 3 Nov 2015 05:50:31 +0000 (08:50 +0300)
committernds <nds@opencascade.com>
Tue, 3 Nov 2015 05:50:31 +0000 (08:50 +0300)
src/XGUI/XGUI_PropertyPanel.cpp

index 197f794424f226b9917b150e837027d3799d704d..d44c7d1d589f78060a93bb8a1dddd7a12be493d8 100755 (executable)
@@ -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);
     }
   }
 }