From d23fa285c2dae951a8a3fd8036cae2e8bd04fde8 Mon Sep 17 00:00:00 2001 From: mkr Date: Mon, 30 Jun 2008 06:52:56 +0000 Subject: [PATCH] Fix for bug 0019905: EDF 783 ALL: Default button at activation of a module for a new study. --- src/SUIT/SUIT_MsgDlg.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SUIT/SUIT_MsgDlg.cxx b/src/SUIT/SUIT_MsgDlg.cxx index b19372cb8..96e8a616d 100644 --- a/src/SUIT/SUIT_MsgDlg.cxx +++ b/src/SUIT/SUIT_MsgDlg.cxx @@ -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() ) ); -- 2.39.2