logo

WebKitGTK

Unnamed repository; edit this file 'description' to name the repository.
commit: c0550ccb0bde3fd70277b74ad696539f9d1dc0a0
parent: 27a283bdcacfff8ec44dec5ce5e7ab3b57520196
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 20 Jun 2019 23:31:40 +0200

WebKitWebViewGtk.cpp: Allow the user to override the advertised MIME filter

Diffstat:

MSource/WebKit/UIProcess/API/gtk/WebKitWebViewGtk.cpp2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Source/WebKit/UIProcess/API/gtk/WebKitWebViewGtk.cpp b/Source/WebKit/UIProcess/API/gtk/WebKitWebViewGtk.cpp @@ -79,7 +79,7 @@ gboolean webkitWebViewRunFileChooser(WebKitWebView* webView, WebKitFileChooserRe gtk_native_dialog_set_modal(GTK_NATIVE_DIALOG(dialog), TRUE); if (GtkFileFilter* filter = webkit_file_chooser_request_get_mime_types_filter(request)) - gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(dialog), filter); + gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dialog), filter); gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), allowsMultipleSelection); if (const gchar* const* selectedFiles = webkit_file_chooser_request_get_selected_files(request))