taskQTBUG46812_doNotLeaveMenubarHighLighted() remove setActiveWindow()

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

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Iacaf59536ed01e34ed933976b53228a3bd2b22f1
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
bb10
Frédéric Lefebvre 2024-02-09 15:47:14 +01:00
parent 5f8dc8ea5f
commit 835598e20d
1 changed files with 0 additions and 1 deletions

View File

@ -1530,7 +1530,6 @@ void tst_QMenuBar::taskQTBUG46812_doNotLeaveMenubarHighlighted()
initWindowWithSimpleMenuBar(mainWindow);
mainWindow.show();
QApplicationPrivate::setActiveWindow(&mainWindow);
QVERIFY(QTest::qWaitForWindowActive(&mainWindow));
QVERIFY(!mainWindow.menuBar()->hasFocus());