From a0f477cc5fa8945bcd08d1444ba2fbf6184a4563 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 15 May 2019 06:12:33 -0700 Subject: [PATCH] Fix default button option on close The default is meant to be "Save" but "Discard" was selected due to ID ordering on creation. Setting the focus before setting the default makes the "Save" option the highlighted option that can be selected immediately by pressing enter. --- common/confirm.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/confirm.cpp b/common/confirm.cpp index daeb048f99..093f2b5c0b 100644 --- a/common/confirm.cpp +++ b/common/confirm.cpp @@ -166,6 +166,7 @@ public: m_sdbSizerOK->SetLabel( aOKLabel ); m_sdbSizerCancel->SetLabel( aCancelLabel ); + m_sdbSizerOK->SetFocus(); m_sdbSizerOK->SetDefault(); FinishDialogSettings();