From: dooglus Date: Tue, 26 Feb 2008 09:24:28 +0000 (+0000) Subject: When recovering from auto-saved backup files, only add the recovered file to the... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b26c2401611fca2d36486151a9168865b0cafbb1;p=synfig.git When recovering from auto-saved backup files, only add the recovered file to the 'recent files' list if it has a real filename, as opposed to the "Synfig Animation .sifz" name it was given when first created. git-svn-id: http://svn.voria.com/code@1818 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/app.cpp b/synfig-studio/trunk/src/gtkmm/app.cpp index e9dcbb2..b59d5ef 100644 --- a/synfig-studio/trunk/src/gtkmm/app.cpp +++ b/synfig-studio/trunk/src/gtkmm/app.cpp @@ -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::create(canvas));