mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 14:07:01 -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 canImport() { return true; }
|
||||||
virtual bool canExport(const Game&) { return true; }
|
virtual bool canExport(const Game&) { return true; }
|
||||||
virtual SetP importSet(const String& filename) {
|
virtual SetP importSet(const String& filename) {
|
||||||
settings.addRecentFile(filename);
|
|
||||||
SetP set(new Set);
|
SetP set(new Set);
|
||||||
set->open(filename);
|
set->open(filename);
|
||||||
|
settings.addRecentFile(filename);
|
||||||
return set;
|
return set;
|
||||||
}
|
}
|
||||||
virtual void exportSet(Set& set, const String& filename) {
|
virtual void exportSet(Set& set, const String& filename) {
|
||||||
settings.addRecentFile(filename);
|
|
||||||
set.saveAs(filename);
|
set.saveAs(filename);
|
||||||
set.actions.setSavePoint();;
|
settings.addRecentFile(filename);
|
||||||
|
set.actions.setSavePoint();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -3836,9 +3836,6 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath="..\doc\cli\cli.txt">
|
RelativePath="..\doc\cli\cli.txt">
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath="..\doc\cli\flags.txt">
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath="..\doc\cli\index.txt">
|
RelativePath="..\doc\cli\index.txt">
|
||||||
</File>
|
</File>
|
||||||
|
|||||||
Reference in New Issue
Block a user