]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1465 Fatal error when Build Wire
authornds <nds@opencascade.com>
Wed, 27 Apr 2016 12:58:43 +0000 (15:58 +0300)
committernds <nds@opencascade.com>
Wed, 27 Apr 2016 13:27:46 +0000 (16:27 +0300)
src/ModuleBase/ModuleBase_WidgetAction.cpp

index 84b5ceb649311f270492eb98371decc8fec1b311..c9cffda3158404a4df56651b506c49c9e4aa3f3f 100755 (executable)
@@ -26,11 +26,11 @@ ModuleBase_WidgetAction::ModuleBase_WidgetAction(QWidget* theParent,
   myActionID = attributeID();
   setAttributeID("");
 
+  myButton = new QToolButton(this);
   QString aText = QString::fromStdString(theData->widgetLabel());
   QString aToolTip = ModuleBase_Tools::wrapTextByWords(
               QString::fromStdString(theData->widgetTooltip()), myButton, DEFAULT_TOOL_TIP_WIDTH);
 
-  myButton = new QToolButton(this);
   myButton->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
   aControlLay->addWidget(myButton);