summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/qfiledialog_win.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-11-16 16:30:48 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-11-16 16:33:02 (GMT)
commitd456f0ba9781471e962d58cefdced0233d4f8a9d (patch)
tree5d91f8215d14ec47cc8b043f86be4eafffcd7325 /src/gui/dialogs/qfiledialog_win.cpp
parent8f3ba6ac205e5faed7260abb60463375ab4a2f74 (diff)
downloadQt-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/qfiledialog_win.cpp')
-rw-r--r--src/gui/dialogs/qfiledialog_win.cpp2
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);