diff --git a/minigui_addons/webview.d b/minigui_addons/webview.d index 8726ed2..7663dd6 100644 --- a/minigui_addons/webview.d +++ b/minigui_addons/webview.d @@ -943,7 +943,7 @@ version(cef) { try { auto ptr = callback.passable(); browser.runOnWebView((wv) { - getOpenFileName((string name) { + getOpenFileName(wv.parentWindow, (string name) { auto callback = RC!cef_file_dialog_callback_t(ptr); auto list = libcef.string_list_alloc(); auto item = cef_string_t(name);