From fbc97be2dbbe8591773c301f43cb3f7dc7a8e633 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 28 Oct 2017 18:39:57 -0400 Subject: mq_web_view_save(): Set file chooser's current folder --- (limited to 'src') 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); -- cgit v0.9.1