Commit 3594d689 authored by Eike Ziller's avatar Eike Ziller

Raise main window when opening output panes with focus request.

Also do that if the output pane doesn't want the focus. The user still
wants to see the output pane even if the main window is not the current
window.

Change-Id: I341543be53082adec4fade4ffa859ca7c74d3dae
Task-number: QTCREATORBUG-13088
Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
parent 89e418ef
......@@ -494,8 +494,9 @@ void OutputPaneManager::showPage(int idx, int flags)
ensurePageVisible(idx);
IOutputPane *out = m_panes.at(idx);
out->visibilityChanged(true);
if (flags & IOutputPane::WithFocus && out->canFocus()) {
out->setFocus();
if (flags & IOutputPane::WithFocus) {
if (out->canFocus())
out->setFocus();
ICore::raiseWindow(m_outputWidgetPane);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment