+ if (synfigapp::Instance::save())
+ {
+ App::add_recent_file(etl::handle<Instance>(this));
+ return STATUS_OK;
+ }
+ string msg(strprintf(_("Unable to save to '%s'"), get_file_name().c_str()));
+ App::dialog_error_blocking(_("Save - Error"), msg.c_str());
+ return STATUS_ERROR;
+}
+
+// the filename will be set to "Synfig Animation 1" or some such when first created
+// and will be changed to an absolute path once it has been saved
+// so if it still begins with "Synfig Animation " then we don't have a real filename yet
+bool
+studio::Instance::has_real_filename()
+{
+ return get_file_name().find(App::custom_filename_prefix.c_str()) != 0;