Salome HOME
Activation of the first control in the boolean operations.
authornds <nds@opencascade.com>
Fri, 13 Nov 2015 05:56:16 +0000 (08:56 +0300)
committernds <nds@opencascade.com>
Fri, 13 Nov 2015 05:56:16 +0000 (08:56 +0300)
src/ModuleBase/ModuleBase_WidgetChoice.cpp
src/ModuleBase/ModuleBase_WidgetChoice.h

index 4b09ffab63f7f6fd637f3132ca66ebb2789934a4..3fed3ea5f661fba5dba5b5305e58c7d6b239f96c 100644 (file)
@@ -138,7 +138,7 @@ bool ModuleBase_WidgetChoice::focusTo()
   if (myCombo)
     myCombo->setFocus();
   else
-    myButtons->button(0)->setFocus();
+    return false;
   return true;
 }
 
index 8e25ee1f935cee0b94ea01007976b923b3105328..fa643d44820cec7312c354a99b52912820999b20 100644 (file)
@@ -45,7 +45,11 @@ Q_OBJECT
                           const std::string& theParentId);
 
   virtual ~ModuleBase_WidgetChoice();
-  
+
+  /// Defines if it is supported to set the value in this widget
+  /// It returns false because this is an info widget
+  virtual bool canSetValue() const { return false; };
+
   virtual bool focusTo();
 
   /// Returns list of widget controls