forked from qt-creator/qt-creator
OutputPanes::hasFocus() needs to check the window's focus widget
QWidget::hasFocus() returns false if the window isn't active. Task-number: QTCREATORBUG-13361 Change-Id: I7152ec2139bbb255c2a722e378a111dc4bc2ed62 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -187,7 +187,7 @@ bool QmlConsolePane::canFocus() const
|
||||
|
||||
bool QmlConsolePane::hasFocus() const
|
||||
{
|
||||
return m_consoleWidget->hasFocus();
|
||||
return m_consoleWidget->window()->focusWidget() == m_consoleWidget;
|
||||
}
|
||||
|
||||
void QmlConsolePane::setFocus()
|
||||
|
||||
Reference in New Issue
Block a user