diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-10-13 11:35:30 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-10-13 12:36:08 (GMT) |
commit | a6006b9b97634ae93e2ccc2dd93c0161e69d55dc (patch) | |
tree | 5e7230af878241ac01b18fd203bddba3aa0cc8f1 /src/gui | |
parent | 378b1608e7962da9ee295101be40c84606a8a6c0 (diff) | |
download | Qt-a6006b9b97634ae93e2ccc2dd93c0161e69d55dc.zip Qt-a6006b9b97634ae93e2ccc2dd93c0161e69d55dc.tar.gz Qt-a6006b9b97634ae93e2ccc2dd93c0161e69d55dc.tar.bz2 |
Disable selection of Libraries on Windows 7 in getExistingDirectory().
The Libraries on Windows 7 are user-defined collection of folders, which
is only a logical representation. There are no file system entries
associated with it .
This patch makes sure that user cannot choose a library when using the
QFileDialog::getExistingDirectory(), in such cases it will show a
standard windows warning message.
Task-number: QTBUG-12655
Reviewed-by: Thierry Bastian
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/dialogs/qfiledialog_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/qfiledialog_win.cpp b/src/gui/dialogs/qfiledialog_win.cpp index 5b192b4..98860c4 100644 --- a/src/gui/dialogs/qfiledialog_win.cpp +++ b/src/gui/dialogs/qfiledialog_win.cpp @@ -603,7 +603,7 @@ QString qt_win_CID_get_existing_directory(const QFileDialogArgs &args) // Set the FOS_PICKFOLDERS flag DWORD newOptions; hr = pfd->GetOptions(&newOptions); - newOptions |= FOS_PICKFOLDERS; + newOptions |= (FOS_PICKFOLDERS | FOS_FORCEFILESYSTEM); if (SUCCEEDED(hr) && SUCCEEDED((hr = pfd->SetOptions(newOptions)))) { QWidget *parentWindow = args.parent; if (parentWindow) |