summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-28 18:39:57 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-28 18:39:57 (EDT)
commitfbc97be2dbbe8591773c301f43cb3f7dc7a8e633 (patch)
tree778426ea0942ebc7f3a2bee388b4cbb799fb112e /src
parentc3b90f59b72e5bbd0980098008bb94e53a0542b5 (diff)
downloadmarquee-fbc97be2dbbe8591773c301f43cb3f7dc7a8e633.zip
marquee-fbc97be2dbbe8591773c301f43cb3f7dc7a8e633.tar.gz
marquee-fbc97be2dbbe8591773c301f43cb3f7dc7a8e633.tar.bz2
mq_web_view_save(): Set file chooser's current folder
Diffstat (limited to 'src')
-rw-r--r--src/web-view.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/web-view.c b/src/web-view.c
index a4e8af5..07d8d0b 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -878,6 +878,7 @@ mq_web_view_save(MqWebView *web_view)
{
GtkWidget *dialog;
GtkFileChooser *chooser;
+ gchar *dir;
gchar *title;
gchar *filename;
@@ -889,7 +890,9 @@ mq_web_view_save(MqWebView *web_view)
NULL);
chooser = GTK_FILE_CHOOSER(dialog);
gtk_file_chooser_set_do_overwrite_confirmation(chooser, TRUE);
- /* TODO: gtk_file_chooser_set_current_folder() */
+ dir = mq_config_get_string(web_view->config, "directories.downloads");
+ gtk_file_chooser_set_current_folder(chooser, dir);
+ g_free(dir);
title = get_clean_title(web_view);
filename = g_strconcat(title, ".mhtml", NULL);
g_free(title);