mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Compatibility check - export is still a reserved word.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@431 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -213,8 +213,8 @@ ExportOptionsEditor::ExportOptionsEditor(Window* parent, int id, long style)
|
||||
: NativeLookEditor(parent, id, style)
|
||||
{}
|
||||
|
||||
void ExportOptionsEditor::showExport(const ExportTemplateP& export) {
|
||||
setStyles(set->stylesheet, export->option_style);
|
||||
setData(settings.exportOptionsFor(*export));
|
||||
void ExportOptionsEditor::showExport(const ExportTemplateP& export_template) {
|
||||
setStyles(set->stylesheet, export_template->option_style);
|
||||
setData(settings.exportOptionsFor(*export_template));
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ class ExportOptionsEditor : public NativeLookEditor {
|
||||
ExportOptionsEditor(Window* parent, int id, long style = 0);
|
||||
|
||||
/// Show the options for given export template
|
||||
void showExport(const ExportTemplateP& export);
|
||||
void showExport(const ExportTemplateP& export_template);
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
|
||||
@@ -62,10 +62,10 @@ void HtmlExportWindow::onOk(wxCommandEvent&) {
|
||||
|
||||
void HtmlExportWindow::onTemplateSelect(wxCommandEvent&) {
|
||||
wxBusyCursor wait;
|
||||
ExportTemplateP export = list->getSelection<ExportTemplate>();
|
||||
ExportTemplateP export_template = list->getSelection<ExportTemplate>();
|
||||
handle_pending_errors();
|
||||
options->showExport(export);
|
||||
settings.gameSettingsFor(*set->game).default_export = export->name();
|
||||
options->showExport(export_template);
|
||||
settings.gameSettingsFor(*set->game).default_export = export_template->name();
|
||||
UpdateWindowUI(wxUPDATE_UI_RECURSE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user