Fix that window actions did not bring up minimized windows

Selecting a window from the Window menu didn't bring up minimized
windows from their minimized state, and resulted in two items being
checked in the window list (because the active window did not change, so
the checkmarks where not updated).

Change-Id: Ie89b87fa1273378bb99f69026a58ee92ea0b8f50
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Eike Ziller
2024-02-19 09:47:06 +01:00
parent 814e84a5e7
commit 8a6d94235b

View File

@@ -176,7 +176,10 @@ void WindowList::activateWindow(QAction *action)
int index = m_windowActions.indexOf(action);
QTC_ASSERT(index >= 0, return);
QTC_ASSERT(index < m_windows.size(), return);
ICore::raiseWindow(m_windows.at(index));
QWidget *window = m_windows.at(index);
if (window->isMinimized())
window->setWindowState(window->windowState() & ~Qt::WindowMinimized);
ICore::raiseWindow(window);
}
void WindowList::updateTitle(QWidget *window, int i)