qt6-bb10/tests/auto/widgets/kernel/qwidget
Eskil Abrahamsen Blomfeldt 5711aaa017 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>
2024-04-30 07:14:41 +02:00
..
.gitignore
BLACKLIST Android: blacklist tst_QWidget::setParentChangesFocus 2024-04-12 20:12:18 +03:00
CMakeLists.txt CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
geometry-fullscreen.dat
geometry-maximized.dat
geometry.dat
hellotr_la.qm Send the LanguageChange event to all top level windows, not just widgets 2020-02-18 22:11:30 +01:00
tst_qwidget.cpp test: Don't crash when focusWidget() is null 2024-04-30 07:14:41 +02:00