From: nds Date: Fri, 13 Nov 2015 05:56:16 +0000 (+0300) Subject: Activation of the first control in the boolean operations. X-Git-Tag: V_2.0.0_alfa2~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1fb8c1e7c9a233ec83ec7d915271f8b65806f1b4;p=modules%2Fshaper.git Activation of the first control in the boolean operations. --- diff --git a/src/ModuleBase/ModuleBase_WidgetChoice.cpp b/src/ModuleBase/ModuleBase_WidgetChoice.cpp index 4b09ffab6..3fed3ea5f 100644 --- a/src/ModuleBase/ModuleBase_WidgetChoice.cpp +++ b/src/ModuleBase/ModuleBase_WidgetChoice.cpp @@ -138,7 +138,7 @@ bool ModuleBase_WidgetChoice::focusTo() if (myCombo) myCombo->setFocus(); else - myButtons->button(0)->setFocus(); + return false; return true; } diff --git a/src/ModuleBase/ModuleBase_WidgetChoice.h b/src/ModuleBase/ModuleBase_WidgetChoice.h index 8e25ee1f9..fa643d448 100644 --- a/src/ModuleBase/ModuleBase_WidgetChoice.h +++ b/src/ModuleBase/ModuleBase_WidgetChoice.h @@ -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