taskQTBUG53205_crashReparentNested() remove setActiveWindow()

2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I5daca4f335333394fa324d0c800fb20dae0d9909
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
Frédéric Lefebvre 2024-02-09 15:43:23 +01:00
parent 76087c8717
commit ee9af0542e
1 changed files with 0 additions and 1 deletions

View File

@ -1374,7 +1374,6 @@ void tst_QMenuBar::taskQTBUG53205_crashReparentNested()
mainWindow.resize(300, 200); mainWindow.resize(300, 200);
centerOnScreen(&mainWindow); centerOnScreen(&mainWindow);
const TestMenu testMenus = initWindowWithComplexMenuBar(mainWindow); const TestMenu testMenus = initWindowWithComplexMenuBar(mainWindow);
QApplicationPrivate::setActiveWindow(&mainWindow);
// they can't be windows // they can't be windows
QWidget hiddenParent(&mainWindow, {}); QWidget hiddenParent(&mainWindow, {});