diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-28 18:43:26 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-28 18:43:26 (EDT) |
commit | 36ca5259cde5347bf789bf9d7e8a875890fe9583 (patch) | |
tree | cb9006d1bd9e775f2ee7d095f5420e7628c3c59f | |
parent | fbc97be2dbbe8591773c301f43cb3f7dc7a8e633 (diff) | |
download | marquee-36ca5259cde5347bf789bf9d7e8a875890fe9583.zip marquee-36ca5259cde5347bf789bf9d7e8a875890fe9583.tar.gz marquee-36ca5259cde5347bf789bf9d7e8a875890fe9583.tar.bz2 |
mq_web_view_save(): Set directories.downloads to chooser's folder
-rw-r--r-- | src/web-view.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/web-view.c b/src/web-view.c index 07d8d0b..34508e4 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -860,6 +860,10 @@ save_response_cb(GtkWidget *dialog, gint response_id, MqWebView *web_view) GFile *file; if (response_id == GTK_RESPONSE_ACCEPT) { + mq_config_set_string(web_view->config, "directories.downloads", + gtk_file_chooser_get_current_folder( + GTK_FILE_CHOOSER(dialog))); + mq_config_save(web_view->config); filename = gtk_file_chooser_get_filename( GTK_FILE_CHOOSER(dialog)); file = g_file_new_for_path(filename); |