mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
fixed update ui for NewWindow
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@106 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -45,9 +45,7 @@ SetP MSE1FileFormat::importSet(const String& filename) {
|
||||
wxTextInputStream file(f);
|
||||
#endif
|
||||
// create set
|
||||
SetP set(new Set);
|
||||
set->game = Game::byName(_("magic"));
|
||||
set->data.init(set->game->set_fields);
|
||||
SetP set(new Set(Game::byName(_("magic"))));
|
||||
|
||||
// file version check
|
||||
String format = file.ReadLine();
|
||||
|
||||
@@ -26,6 +26,7 @@ class MSE2FileFormat : public FileFormat {
|
||||
return set;
|
||||
}
|
||||
virtual void exportSet(Set& set, const String& filename) {
|
||||
settings.addRecentFile(filename);
|
||||
set.saveAs(filename);
|
||||
set.actions.setSavePoint();;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user