diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-08-08 12:42:06 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-26 04:03:41 +0200 |
commit | 0842d32441a585026336d616b051915865d51d6a (patch) | |
tree | 3b1e13fec574a356e1d6f3f190c0b2bff64a17b9 /dist/changes-5.0.0 | |
parent | 6b6fefad48abed28df69d0fa830accbb0c8dcb4d (diff) |
QFileSystemModel: fix permission mangling
The old code masked out write flags before returning permissions
from permissions() or data(FilePermissions) in order to force
QFileDialog to disable the rename and delete actions. This was to
fix Task 143519, but introduced QTBUG-20503.
Instead, revert to the pre-143519-bugfix code and do the necessary
check in QFileDialog directly.
Also add a testcase for 143519.
Reported-by: Gilles Pascual
Task-number: QTBUG-20503
Task-number: 143519
Change-Id: I140109341c0ed40722e3aac4327c2a740fb014c2
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Diffstat (limited to 'dist/changes-5.0.0')
-rw-r--r-- | dist/changes-5.0.0 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0 index e02eb1919d..16ba1c3453 100644 --- a/dist/changes-5.0.0 +++ b/dist/changes-5.0.0 @@ -531,6 +531,10 @@ QtWidgets by QAbstractProxyModel and related classes. A copy of QProxyModel is available in the UiHelpers library. +* [QTBUG-20503] QFileSystemModel no longer masks out write permissions from the permissions + returned from permissions() or data(FilePermissions), even if in read-only mode + (QFileSystemModel::isReadOnly()). + QtNetwork --------- * QHostAddress::isLoopback() API added. Returns true if the address is |