forked from qt-creator/qt-creator
Fix focusing of already open output pane from separate window
If the focus is in a separate window and the shortcut for an already open output pane is triggered, we should set the focus there and activate the window, not close the output pane. Fixes: QTCREATORBUG-20083 Change-Id: Ia9f9fbe137c9ac1ad3e9d148cc410ca093275916 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -513,7 +513,8 @@ void OutputPaneManager::shortcutTriggered(int idx)
|
||||
// then just give it focus.
|
||||
int current = currentIndex();
|
||||
if (OutputPanePlaceHolder::isCurrentVisible() && current == idx) {
|
||||
if (!outputPane->hasFocus() && outputPane->canFocus()) {
|
||||
if ((!m_outputWidgetPane->isActiveWindow() || !outputPane->hasFocus())
|
||||
&& outputPane->canFocus()) {
|
||||
outputPane->setFocus();
|
||||
ICore::raiseWindow(m_outputWidgetPane);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user