summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/qstyleplugin/main.cpp
diff options
context:
space:
mode:
authorSze Howe Koh <szehowe.koh@gmail.com>2021-07-24 22:12:36 +0800
committerEirik Aavitsland <eirik.aavitsland@qt.io>2021-09-04 03:43:44 +0200
commitee5077daf59f24ca535302799ad718935e6bc4b8 (patch)
tree1d3a67b61b31135b5df401830065342b63aaca9a /src/widgets/doc/snippets/qstyleplugin/main.cpp
parentae8e96d4c2fc430ed6f71e422ef4aff2c7f15186 (diff)
QPixmap: Fix crash if created without gui app in secondary thread
The thread checking in in_pixmap_thread_test() is only safe, and only makes sense, if we have a QGuiApplication. If we only have QCoreApplication, only null QPixmaps may be created anyway, so threading makes no difference. Fixes: QTBUG-95358 Pick-to: 6.2 Change-Id: I93c983a3d6c271b0a19dfd0384862fc151459029 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
Diffstat (limited to 'src/widgets/doc/snippets/qstyleplugin/main.cpp')
0 files changed, 0 insertions, 0 deletions