]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for bug 0019905: EDF 783 ALL: Default button at activation of a module for a...
authormkr <mkr@opencascade.com>
Mon, 30 Jun 2008 06:52:56 +0000 (06:52 +0000)
committermkr <mkr@opencascade.com>
Mon, 30 Jun 2008 06:52:56 +0000 (06:52 +0000)
src/SUIT/SUIT_MsgDlg.cxx

index b19372cb8bc803f4bd763b6b25406c397001f295..96e8a616dcdc301433a49bed95d5fe2807111bc5 100644 (file)
@@ -160,6 +160,9 @@ int SUIT_MsgDlg::addButton( const QString& btext, const int id )
   QPushButton* newButton = new QPushButton( btext, this );
 
   myButtonLayout->insertWidget( myButtons.count(), newButton );
+
+  if ( myButtons.empty() ) newButton->setDefault(true);
+
   myButtons.insert( newButton, bid );
   connect( newButton, SIGNAL( clicked() ), this, SLOT( accept() ) );