In the 'open > recent files' menu entry, only show files which still exist. Previous...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 20 Apr 2008 15:58:08 +0000 (15:58 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 20 Apr 2008 15:58:08 +0000 (15:58 +0000)
git-svn-id: http://svn.voria.com/code@2025 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 4728423..217174e 100644 (file)
@@ -1624,10 +1624,13 @@ App::load_settings()
                                {
                                        if(!window_size_broken && !file_window_size)
                                                window_size_broken = true;
-                                       if(!window_size_broken)
-                                               add_recent_file(recent_file,recent_file_window_size);
-                                       else
-                                               add_recent_file(recent_file);
+                                       if (std::ifstream(recent_file.c_str()))
+                                       {
+                                               if(!window_size_broken)
+                                                       add_recent_file(recent_file,recent_file_window_size);
+                                               else
+                                                       add_recent_file(recent_file);
+                                       }
                                }
                        }
                        if(!window_size_broken && file_window_size)