Commit 6d4762e1 authored by twanvl's avatar twanvl

compatibility with wxWdigets 2.9+: wxSAVE -> wxFD_SAVE, etc

parent 7d3dba99
......@@ -656,7 +656,7 @@ ApprenticeExportWindow::ApprenticeExportWindow(Window* parent, const SetP& set)
void ApprenticeExportWindow::onApprenticeBrowse(wxCommandEvent& ev) {
// browse for appr.exe
// same as in DirsPreferencesPage
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());
......
......@@ -63,7 +63,7 @@ void export_mws(Window* parent, const SetP& set) {
// Select filename
String name = wxFileSelector(_("Export to file"),settings.default_export_dir,_(""),_(""),
_("Text files (*.txt)|*.txt|All Files|*"),
wxSAVE | wxOVERWRITE_PROMPT, parent);
wxFD_SAVE | wxFD_OVERWRITE_PROMPT, parent);
if (name.empty()) return;
settings.default_export_dir = wxPathOnly(name);
wxBusyCursor busy;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment