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 { ...@@ -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 @@ ...@@ -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>
......
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