tst_QMdiSubWindow::task_182852() remove setActiveWindow()
2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.
Remove redundant calls.
Task-number: QTBUG-121488
Change-Id: I72acfc354fca807feb71e7a2eeb3c93e27d82ff5
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
bb10
parent
497a02fd97
commit
06b374eae1
|
|
@ -1953,7 +1953,6 @@ void tst_QMdiSubWindow::task_182852()
|
|||
mainWindow.setCentralWidget(workspace);
|
||||
mainWindow.show();
|
||||
mainWindow.menuBar()->setVisible(true);
|
||||
QApplicationPrivate::setActiveWindow(&mainWindow);
|
||||
if (mainWindow.menuBar()->isNativeMenuBar())
|
||||
return; // The main window's title is not overwritten if we have a native menubar (macOS, Unity etc.)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue