Code

Correct default for save-as location. Fixes bug #561375.
authorJon A. Cruz <jon@joncruz.org>
Sun, 18 Jul 2010 08:51:05 +0000 (01:51 -0700)
committerJon A. Cruz <jon@joncruz.org>
Sun, 18 Jul 2010 08:51:05 +0000 (01:51 -0700)
src/extension/system.cpp
src/preferences-skeleton.h

index 6ffa7f57f8428b6c3c60edf4efa48390c2e18b0a..5412a5cc0b2a5de3c9e59cbcefa8060917be3016 100644 (file)
@@ -589,7 +589,7 @@ get_file_save_path (SPDocument *doc, FileSaveMethod method) {
     switch (method) {
         case FILE_SAVE_METHOD_SAVE_AS:
         {
-            bool use_current_dir = prefs->getBool("/dialogs/save_as/use_current_dir");
+            bool use_current_dir = prefs->getBool("/dialogs/save_as/use_current_dir", true);
             if (doc->uri && use_current_dir) {
                 path = Glib::path_get_dirname(doc->uri);
             } else {
index dd925490e7966dc92327b3b921fa64cf1de33247..c73cae17f46a1ab61cdb7f044ca044713b6f2d39 100644 (file)
@@ -193,7 +193,7 @@ static char const preferences_skeleton[] =
 "      <group id=\"exportarea\"/>\n"
 "      <group id=\"defaultxdpi\"/>\n"
 "    </group>\n"
-"    <group id=\"save_as\" default=\"\" append_extension=\"1\" enable_preview=\"1\" path=\"\"/>\n"
+"    <group id=\"save_as\" default=\"\" append_extension=\"1\" enable_preview=\"1\" path=\"\" use_current_dir=\"1\"/>\n"
 "    <group id=\"save_copy\" default=\"\" append_extension=\"1\" enable_preview=\"1\" path=\"\"/>\n"
 "    <group id=\"open\" enable_preview=\"1\" path=\"\"/>\n"
 "    <group id=\"import\" enable_preview=\"1\" path=\"\"/>\n"