From 08d6390b2131b8c5f2b582e4dc037f1c919d5e31 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Wed, 30 Jan 2013 15:50:39 +0100 Subject: Only allow one dir to be selected for getExistingDirectory() on Win Task-number: QTBUG-21372 Change-Id: Ifcb625a0c974c5ee51fb42736bd3b309bd017296 Reviewed-by: Friedemann Kleint --- src/gui/dialogs/qfiledialog_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/dialogs/qfiledialog_win.cpp b/src/gui/dialogs/qfiledialog_win.cpp index 37f7600..fcdf04e 100644 --- a/src/gui/dialogs/qfiledialog_win.cpp +++ b/src/gui/dialogs/qfiledialog_win.cpp @@ -580,7 +580,7 @@ QString qt_win_CID_get_existing_directory(const QFileDialogArgs &args) if (SUCCEEDED(hr)) { qt_win_set_IFileDialogOptions(pfd, args.selection, args.directory, args.caption, - QStringList(), QFileDialog::ExistingFiles, + QStringList(), QFileDialog::ExistingFile, args.options); // Set the FOS_PICKFOLDERS flag -- cgit v0.12