mirror of https://github.com/qt/qtbase.git
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:
parent
76087c8717
commit
ee9af0542e
|
@ -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, {});
|
||||||
|
|
Loading…
Reference in New Issue