mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Files are only added to recent sets *after* they have been successfully opened
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1068 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -21,15 +21,15 @@ class MSE2FileFormat : public FileFormat {
|
||||
virtual bool canImport() { return true; }
|
||||
virtual bool canExport(const Game&) { return true; }
|
||||
virtual SetP importSet(const String& filename) {
|
||||
settings.addRecentFile(filename);
|
||||
SetP set(new Set);
|
||||
set->open(filename);
|
||||
settings.addRecentFile(filename);
|
||||
return set;
|
||||
}
|
||||
virtual void exportSet(Set& set, const String& filename) {
|
||||
settings.addRecentFile(filename);
|
||||
set.saveAs(filename);
|
||||
set.actions.setSavePoint();;
|
||||
settings.addRecentFile(filename);
|
||||
set.actions.setSavePoint();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user