From 5e25f87db1014346889c69600fe1f3a01c150dd6 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 3 Feb 2008 23:59:53 +0000 Subject: [PATCH] When doing a 'Save As', default to saving in the same directory that the file was loaded from, if any. git-svn-id: http://svn.voria.com/code@1572 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/instance.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/synfig-studio/trunk/src/gtkmm/instance.cpp b/synfig-studio/trunk/src/gtkmm/instance.cpp index d809e07..8ac71f2 100644 --- a/synfig-studio/trunk/src/gtkmm/instance.cpp +++ b/synfig-studio/trunk/src/gtkmm/instance.cpp @@ -54,6 +54,7 @@ #include "iconcontroller.h" #include #include +#include #include "general.h" @@ -256,6 +257,9 @@ studio::Instance::dialog_save_as() } } + if (get_file_name().find(DEFAULT_FILENAME_PREFIX) != 0) + filename = absolute_path(filename); + // show the canvas' name if it has one, else its ID while (App::dialog_save_file((_("Choose a Filename to Save As") + String(" (") + -- 2.7.4