summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/image/qpixmapcache/tst_qpixmapcache.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-04-23 13:36:23 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-04-30 07:14:41 +0200
commit5711aaa0170bd97dab1479c0e6c884289e41da99 (patch)
tree39e68058513731cfb55f423e4a6e5edcaf86292e /tests/auto/gui/image/qpixmapcache/tst_qpixmapcache.cpp
parent51420d910ba1b61e420db82ed5b709e158edada8 (diff)
test: Don't crash when focusWidget() is nullHEADdev
If QApplication::focusWidget() returns null, which was the case on Wayland under some circumstances, then the code collecting the error output would crash when dereferencing the null pointer. This fixes that crash and gets proper test failure output instead. Pick-to: 6.5 6.7 Fixes: QTBUG-124475 Change-Id: Ic34228be953cf42dfe2ebf75957cd48791e6de7d Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'tests/auto/gui/image/qpixmapcache/tst_qpixmapcache.cpp')
0 files changed, 0 insertions, 0 deletions