diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/hints_dialog.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/wx/hints_dialog.cc b/src/wx/hints_dialog.cc index 7a44e2267..72a57740e 100644 --- a/src/wx/hints_dialog.cc +++ b/src/wx/hints_dialog.cc @@ -69,15 +69,20 @@ HintsDialog::HintsDialog (wxWindow* parent, std::weak_ptr<Film> film, bool ok) auto buttons = CreateStdDialogButtonSizer (0); sizer->Add (CreateSeparatedSizer(buttons), wxSizerFlags().Expand().DoubleBorder()); + wxButton* default_button = nullptr; if (ok) { - buttons->SetAffirmativeButton (new wxButton (this, wxID_OK)); + default_button = new wxButton(this, wxID_OK); + buttons->SetAffirmativeButton(default_button); } else { - buttons->SetAffirmativeButton (new wxButton (this, wxID_OK, _("Make DCP"))); + default_button = new wxButton(this, wxID_OK, _("Make DCP")); + buttons->SetAffirmativeButton(default_button); buttons->SetNegativeButton (new wxButton (this, wxID_CANCEL, _("Go back"))); } buttons->Realize (); + default_button->SetFocus(); + SetSizer (sizer); sizer->Layout (); sizer->SetSizeHints (this); |
