diff options
| author | Méven Car <[email protected]> | 2026-06-18 09:08:39 +0000 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-06-18 10:30:38 +0000 |
| commit | 922ccb27fba27328741aafdf6bd7a4258d193e88 (patch) | |
| tree | 492f48166c7a92f9d15634fcf116f8ed04eb5a76 /po/or | |
| parent | 8cbae43d2269a056b530e10ae8c11168bc66ebb5 (diff) | |
viewproperties: detect read-only directories on Windows
On Windows QFileInfo::isWritable() returns true for a directory that
carries the read-only attribute, because the attribute does not prevent
creating child files. It does prevent writing the directory's own
extended attribute, the Alternate Data Stream where the view properties
are stored, so the save fails with access denied and the settings are
lost.
Detect the read-only attribute with GetFileAttributesW and store the view
properties in the destination directory instead, the same way a directory
without write permission is handled on other platforms.
The read-only directory test checks that the properties land in the
destination directory.
Diffstat (limited to 'po/or')
0 files changed, 0 insertions, 0 deletions
