Working on 1799250: After changing the filename, update the render settings with...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 21 Sep 2007 00:26:57 +0000 (00:26 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 21 Sep 2007 00:26:57 +0000 (00:26 +0000)
git-svn-id: http://svn.voria.com/code@728 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 81d692c..2b3cf90 100644 (file)
@@ -189,6 +189,10 @@ studio::Instance::save_as(const synfig::String &file_name)
 {
        if(synfigapp::Instance::save_as(file_name))
        {
+               // after changing the filename, update the render settings with the new filename
+               list<handle<CanvasView> >::iterator iter;
+               for(iter=canvas_view_list().begin();iter!=canvas_view_list().end();iter++)
+                       (*iter)->render_settings.set_entry_filename();
                App::add_recent_file(file_name);
                return true;
        }