From b26c2401611fca2d36486151a9168865b0cafbb1 Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 26 Feb 2008 09:24:28 +0000 Subject: [PATCH] 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 --- synfig-studio/trunk/src/gtkmm/app.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- 2.7.4