diff options
author | Mikolaj Boc <mikolaj.boc@qt.io> | 2022-11-24 17:56:10 +0100 |
---|---|---|
committer | Mikołaj Boc <Mikolaj.Boc@qt.io> | 2022-11-29 11:52:36 +0000 |
commit | 391e21d23ddb2e8e93d70261614be36835d518a2 (patch) | |
tree | 3215c8b655ac9b073665517dc38657dc80b50624 /examples/widgets/itemviews/flattreeview/CMakeLists.txt | |
parent | d21b48435436759c4e86cd8db15af8bedba6c552 (diff) |
Avoid a crash on pasting files to text edits
The mime data object fed to qWasmClipboardPaste in qClipboardPasteTo
might have empty formats. We unconditionally check the first format
nevertheless, which leads to a crash. Avoid feeding empty mime data
to the widget system.
Fixes: QTBUG-108840
Change-Id: If874e973b742d35c16cb8a87194d9d4b8f470801
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'examples/widgets/itemviews/flattreeview/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions