diff --git a/src/gui/preferences_window.cpp b/src/gui/preferences_window.cpp index c20847cd..67be09e2 100644 --- a/src/gui/preferences_window.cpp +++ b/src/gui/preferences_window.cpp @@ -321,7 +321,7 @@ void DirsPreferencesPage::store() { void DirsPreferencesPage::onApprenticeBrowse(wxCommandEvent&) { // browse for appr.exe - wxFileDialog dlg(this, _TITLE_("locate apprentice"), apprentice->GetValue(), _(""), _LABEL_("apprentice exe") + _("|appr.exe"), wxOPEN); + wxFileDialog dlg(this, _TITLE_("locate apprentice"), apprentice->GetValue(), _(""), _LABEL_("apprentice exe") + _("|appr.exe"), wxFD_OPEN); if (dlg.ShowModal() == wxID_OK) { wxFileName fn(dlg.GetPath()); apprentice->SetValue(fn.GetPath());