diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2024-04-23 13:36:23 +0200 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2024-04-30 07:14:41 +0200 |
commit | 5711aaa0170bd97dab1479c0e6c884289e41da99 (patch) | |
tree | 39e68058513731cfb55f423e4a6e5edcaf86292e /src/gui/doc/src/qt6-changes.qdoc | |
parent | 51420d910ba1b61e420db82ed5b709e158edada8 (diff) |
test: Don't crash when focusWidget() is null
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 'src/gui/doc/src/qt6-changes.qdoc')
0 files changed, 0 insertions, 0 deletions