diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-28 18:46:05 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-28 18:46:05 (EDT) |
commit | f26b05e80c006804f3918cfbbff9eef80491643b (patch) | |
tree | 516d033e325ac625fd4ef15aa45fda38693e98dd | |
parent | 36ca5259cde5347bf789bf9d7e8a875890fe9583 (diff) | |
download | marquee-f26b05e80c006804f3918cfbbff9eef80491643b.zip marquee-f26b05e80c006804f3918cfbbff9eef80491643b.tar.gz marquee-f26b05e80c006804f3918cfbbff9eef80491643b.tar.bz2 |
mq_web_view_open(): Set directories.open-file to chooser's folder
-rw-r--r-- | src/web-view.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/web-view.c b/src/web-view.c index 34508e4..24cfdcd 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -805,6 +805,9 @@ open_response_cb(GtkWidget *dialog, gint response_id, MqWebView *web_view) gchar *uri; if (response_id == GTK_RESPONSE_ACCEPT) { + mq_config_set_string(web_view->config, "directories.open-file", + gtk_file_chooser_get_current_folder( + GTK_FILE_CHOOSER(dialog))); filename = gtk_file_chooser_get_filename( GTK_FILE_CHOOSER(dialog)); uri = g_strconcat("file://", filename, NULL); |