From fe2d0f44cd2d48a7c8daf5028505122a23827c35 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 9 Jan 2014 13:55:19 +0000 Subject: [PATCH] Refs #322: Image is removed without reasons for it --- src/HYDROGUI/HYDROGUI_DeleteDlg.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/HYDROGUI/HYDROGUI_DeleteDlg.cxx b/src/HYDROGUI/HYDROGUI_DeleteDlg.cxx index e7c93fa3..5c851571 100644 --- a/src/HYDROGUI/HYDROGUI_DeleteDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_DeleteDlg.cxx @@ -55,8 +55,13 @@ HYDROGUI_DeleteDlg::HYDROGUI_DeleteDlg( QWidget* theParent ) if ( QPushButton* aYesBtn = ::qobject_cast( button( Yes ) ) ) { setFocusProxy( aYesBtn ); + aYesBtn->setAutoDefault( true ); aYesBtn->setDefault( true ); } + if ( QPushButton* aNoBtn = ::qobject_cast( button( No ) ) ) + { + aNoBtn->setAutoDefault( true ); + } setMinimumSize( 275, 250 ); } -- 2.39.2