From: dooglus Date: Mon, 17 Sep 2007 23:53:22 +0000 (+0000) Subject: When saving a file, remember the directory it was saved to, and use that as the defau... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2065999f843c05b8387e583f50d8bd14d9e20ed6;p=synfig.git When saving a file, remember the directory it was saved to, and use that as the default directory in future. Like was already the case when loading a file. git-svn-id: http://svn.voria.com/code@703 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/app.cpp b/synfig-studio/trunk/src/gtkmm/app.cpp index d004654..238e339 100644 --- a/synfig-studio/trunk/src/gtkmm/app.cpp +++ b/synfig-studio/trunk/src/gtkmm/app.cpp @@ -1806,6 +1806,7 @@ App::dialog_save_file(const std::string &title, std::string &filename) if(GetSaveFileName(&ofn)) { filename=szFilename; + _preferences.set_value("curr_path",dirname(filename)); return true; } return false; @@ -1827,6 +1828,7 @@ App::dialog_save_file(const std::string &title, std::string &filename) if(dialog->run()==GTK_RESPONSE_ACCEPT) { filename=dialog->get_filename(); delete dialog; + _preferences.set_value("curr_path",dirname(filename)); return true; } delete dialog;