diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-11-16 16:30:48 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-11-16 16:33:02 (GMT) |
commit | d456f0ba9781471e962d58cefdced0233d4f8a9d (patch) | |
tree | 5d91f8215d14ec47cc8b043f86be4eafffcd7325 /src/gui/dialogs | |
parent | 8f3ba6ac205e5faed7260abb60463375ab4a2f74 (diff) | |
download | Qt-d456f0ba9781471e962d58cefdced0233d4f8a9d.zip Qt-d456f0ba9781471e962d58cefdced0233d4f8a9d.tar.gz Qt-d456f0ba9781471e962d58cefdced0233d4f8a9d.tar.bz2 |
QFileDialog: user could not select a readonly file on vista and win7
Reviewed-by: prasanth
Diffstat (limited to 'src/gui/dialogs')
-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 8089b43..d8ae73e 100644 --- a/src/gui/dialogs/qfiledialog_win.cpp +++ b/src/gui/dialogs/qfiledialog_win.cpp @@ -509,7 +509,7 @@ static bool qt_win_set_IFileDialogOptions(IFileDialog *pfd, DWORD newOptions; hr = pfd->GetOptions(&newOptions); if (SUCCEEDED(hr)) { - newOptions |= (FOS_NOCHANGEDIR | FOS_NOREADONLYRETURN); + newOptions |= FOS_NOCHANGEDIR; if (mode == QFileDialog::ExistingFile || mode == QFileDialog::ExistingFiles) newOptions |= (FOS_FILEMUSTEXIST | FOS_PATHMUSTEXIST); |