diff options
-rw-r--r-- | src/web-view.c | 5 |
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); |