From 1bf8270c0d61a6df8a9071485520a2972db00a4e Mon Sep 17 00:00:00 2001 From: Tan Wang Leng Date: Thu, 2 Feb 2017 20:21:20 +0800 Subject: [PATCH] :checkered_flag: Fix dialog method calls for Windows --- atom/browser/ui/file_dialog_win.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/ui/file_dialog_win.cc b/atom/browser/ui/file_dialog_win.cc index dc28acb34889..365d28cbacfb 100644 --- a/atom/browser/ui/file_dialog_win.cc +++ b/atom/browser/ui/file_dialog_win.cc @@ -169,7 +169,7 @@ void RunOpenDialogInNewThread(const RunState& run_state, const OpenDialogCallback& callback) { std::vector paths; bool result = ShowOpenDialog(parent, title, button_label, default_path, - filters, properties, &paths); + filters, properties, "", &paths); run_state.ui_task_runner->PostTask(FROM_HERE, base::Bind(callback, result, paths)); run_state.ui_task_runner->DeleteSoon(FROM_HERE, run_state.dialog_thread); @@ -184,7 +184,7 @@ void RunSaveDialogInNewThread(const RunState& run_state, const SaveDialogCallback& callback) { base::FilePath path; bool result = ShowSaveDialog(parent, title, button_label, default_path, - filters, &path); + filters, "", "", false, &path); run_state.ui_task_runner->PostTask(FROM_HERE, base::Bind(callback, result, path)); run_state.ui_task_runner->DeleteSoon(FROM_HERE, run_state.dialog_thread);