When recovering from auto-saved backup files, only add the recovered file to the...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 26 Feb 2008 09:24:28 +0000 (09:24 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 26 Feb 2008 09:24:28 +0000 (09:24 +0000)
git-svn-id: http://svn.voria.com/code@1818 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/app.cpp

index e9dcbb2..b59d5ef 100644 (file)
@@ -2189,7 +2189,8 @@ App::open_as(std::string filename,std::string as)
                        if(!canvas)
                                throw (String)strprintf(_("Unable to open file \"%s\""),filename.c_str());
 
-                       add_recent_file(as);
+                       if (as.find(DEFAULT_FILENAME_PREFIX) != 0)
+                               add_recent_file(as);
 
                        handle<Instance> instance(Instance::create(canvas));