┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/private/kfileitemclipboard.cpp
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2026-06-18 09:08:39 +0000
committerMéven Car <[email protected]>2026-06-18 10:30:38 +0000
commit922ccb27fba27328741aafdf6bd7a4258d193e88 (patch)
tree492f48166c7a92f9d15634fcf116f8ed04eb5a76 /src/kitemviews/private/kfileitemclipboard.cpp
parent8cbae43d2269a056b530e10ae8c11168bc66ebb5 (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 'src/kitemviews/private/kfileitemclipboard.cpp')
0 files changed, 0 insertions, 0 deletions