Commit abd0b7b9 authored by twanvl's avatar twanvl

Files are only added to recent sets *after* they have been successfully opened

parent 4dbeabf2
......@@ -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();
}
};
......
......@@ -3836,9 +3836,6 @@
<File
RelativePath="..\doc\cli\cli.txt">
</File>
<File
RelativePath="..\doc\cli\flags.txt">
</File>
<File
RelativePath="..\doc\cli\index.txt">
</File>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment