[Xfce4-commits] <postler:master> Use Download folder for saving attachments
Christian Dywan
noreply at xfce.org
Mon Mar 21 02:08:03 CET 2011
Updating branch refs/heads/master
to 7fc813b4cdb76eabb00f3d4f4c102e5b411acec1 (commit)
from b2affe487a96289e4546db5cc003af2db703927a (commit)
commit 7fc813b4cdb76eabb00f3d4f4c102e5b411acec1
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Mar 21 01:56:38 2011 +0100
Use Download folder for saving attachments
postler/postler-content.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index e4a630f..7cf230e 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -1191,7 +1191,10 @@ public class Postler.Content : WebKit.WebView {
Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
Gtk.STOCK_SAVE, Gtk.ResponseType.ACCEPT);
filechooser.do_overwrite_confirmation = true;
- filechooser.set_current_folder (Environment.get_home_dir ());
+ string? folder = Environment.get_user_special_dir (UserDirectory.DOWNLOAD);
+ if (folder == null)
+ folder = Environment.get_home_dir ();
+ filechooser.set_current_folder (folder);
filechooser.set_current_name (message_part.filename ?? "");
if (filechooser.run () == Gtk.ResponseType.ACCEPT)
filename = filechooser.get_filename ();
More information about the Xfce4-commits
mailing list