mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 21:47:00 -04:00
compatibility with wxWdigets 2.9+: wxSAVE -> wxFD_SAVE, etc
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1550 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -55,7 +55,7 @@ HtmlExportWindow::HtmlExportWindow(Window* parent, const SetP& set, const Export
|
|||||||
void HtmlExportWindow::onOk(wxCommandEvent&) {
|
void HtmlExportWindow::onOk(wxCommandEvent&) {
|
||||||
ExportTemplateP exp = list->getSelection<ExportTemplate>();
|
ExportTemplateP exp = list->getSelection<ExportTemplate>();
|
||||||
// get filename
|
// get filename
|
||||||
String name = wxFileSelector(_TITLE_("save html"),settings.default_export_dir,_(""),_(""),exp->file_type, wxSAVE | wxOVERWRITE_PROMPT);
|
String name = wxFileSelector(_TITLE_("save html"),settings.default_export_dir,_(""),_(""),exp->file_type, wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
|
||||||
if (name.empty()) return;
|
if (name.empty()) return;
|
||||||
settings.default_export_dir = wxPathOnly(name);
|
settings.default_export_dir = wxPathOnly(name);
|
||||||
wxBusyCursor wait;
|
wxBusyCursor wait;
|
||||||
|
|||||||
Reference in New Issue
Block a user