summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-10-20 12:58:39 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-10-21 14:43:21 +0200
commit933eb68a9d81391174b772fd49f344082b61fa1b (patch)
tree91a995ccf9255794b88954de097128ac0ba940f5 /src/gui/text
parent63cfab628af937ea33805b698c0b4e08d5117200 (diff)
Windows: Don't force native file dialogs to index compressed files
We use QWindowsShellItem to hook into the native windows file dialog and interface correctly with special windows folders. We create objects of QWindowsShellItem e.g. when the user selects a file. We then probe the shell item for various attributes, e.g. to see if it represents a folder. The selected item might be a compress archive of significant size, and checking whether that archive is a folder can take significant amount of time during which the UI is completely blocked. To prevent that, first check whether the item is a compress item, or a stream, and if so, don't check whether it has sub-folders. Also, don't use the SFGAO_DISPLAYATTRMASK value, which the API documentation [1] explicitly documents as "Don't use". [1] https://learn.microsoft.com/en-us/windows/win32/shell/sfgao Fixes: QTBUG-107618 Pick-to: 6.4 Change-Id: Ifcdec53ec3f8a0236d849a0b72a71afbd03d8290 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/gui/text')
0 files changed, 0 insertions, 0 deletions