X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Finstance.cpp;h=fc455283b7f86e6a6cc477abbdc6ba1a4d4f9b11;hb=faa340a2a22d0b46fc21e2c9779bf7eff811bfbe;hp=a82c89b1e75dac5bd8963ab0e9ea8b5d07663d08;hpb=3ce4684ba034e0e9e3c7b78768560dcf31d07b12;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/instance.cpp b/synfig-studio/trunk/src/gtkmm/instance.cpp index a82c89b..fc45528 100644 --- a/synfig-studio/trunk/src/gtkmm/instance.cpp +++ b/synfig-studio/trunk/src/gtkmm/instance.cpp @@ -202,15 +202,12 @@ studio::Instance::save() // and will be changed to an absolute path once it has been saved // so if it still begins with "Synfig Animation " then we need to ask where to save it if(get_file_name().find(DEFAULT_FILENAME_PREFIX)==0) - { - dialog_save_as(); - return true; - } + return dialog_save_as(); return synfigapp::Instance::save(); } -void +bool studio::Instance::dialog_save_as() { string filename=basename(get_file_name()); @@ -234,7 +231,7 @@ studio::Instance::dialog_save_as() "other files first before trying to use \"SaveAs\"." ); - return; + return false; } if(parent_layer) break; @@ -287,10 +284,12 @@ studio::Instance::dialog_save_as() } if(save_as(filename)) - break; + return true; App::dialog_error_blocking("SaveAs - Error","Unable to save file"); } + + return false; } void