2007-01-25 [wwp] 2.7.1cvs58
authorTristan Chabredier <wwp@claws-mail.org>
Thu, 25 Jan 2007 17:13:52 +0000 (17:13 +0000)
committerTristan Chabredier <wwp@claws-mail.org>
Thu, 25 Jan 2007 17:13:52 +0000 (17:13 +0000)
* src/mimeview.c
fix handling of empty value in attach_save_directory too, thanks
to Colin.

ChangeLog
PATCHSETS
configure.ac
src/mimeview.c

index a7d2edd..727737c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-01-25 [wwp]       2.7.1cvs58
+
+       * src/mimeview.c
+               fix handling of empty value in attach_save_directory too, thanks
+               to Colin.
+
 2007-01-25 [wwp]       2.7.1cvs57
 
        * src/gtk/filesel.c
index 77664a4..9cfa67c 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.75.2.34 -r 1.75.2.35 src/matcher.c;  cvs diff -u -r 1.39.2.9 -r 1.39.2.10 src/matcher.h;  cvs diff -u -r 1.25.2.20 -r 1.25.2.21 src/matcher_parser_parse.y;  cvs diff -u -r 1.43.2.51 -r 1.43.2.52 src/prefs_matcher.c;  ) > 2.7.1cvs55.patchset
 ( cvs diff -u -r 1.2.4.4 -r 1.2.4.5 src/plugins/dillo_viewer/dillo_prefs.h;  ) > 2.7.1cvs56.patchset
 ( cvs diff -u -r 1.2.2.31 -r 1.2.2.32 src/gtk/filesel.c;  ) > 2.7.1cvs57.patchset
+( cvs diff -u -r 1.83.2.100 -r 1.83.2.101 src/mimeview.c;  ) > 2.7.1cvs58.patchset
index e089c40..bd42d27 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=7
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=57
+EXTRA_VERSION=58
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 6fc2d25..f44a9d4 100644 (file)
@@ -1493,9 +1493,11 @@ static void mimeview_save_all(MimeView *mimeview)
        if (!mimeview->mimeinfo) return;
 
        partinfo = mimeview->mimeinfo;
-       if (prefs_common.attach_save_dir)
+       if (prefs_common.attach_save_dir && *prefs_common.attach_save_dir)
                startdir = g_strconcat(prefs_common.attach_save_dir,
                                       G_DIR_SEPARATOR_S, NULL);
+       else
+               startdir = g_strdup(get_home_dir());
 
        dirname = filesel_select_file_save_folder(_("Select destination folder"), startdir);
        if (!dirname) {