Commit 2118d542 authored by Eike Ziller's avatar Eike Ziller
Browse files

Allow external windows to define contexts for Qt Creator.

Task-number: QTCREATORBUG-5070

Change-Id: Ia466b73eb37bb8aef6f71ab8f1d990b40b43cac3
Reviewed-by: default avatarKonstantin Tokarev <>
Reviewed-by: default avatarEike Ziller <>
parent 6a337561
......@@ -1122,9 +1122,8 @@ void MainWindow::updateFocusWidget(QWidget *old, QWidget *now)
IContext *newContext = 0;
if (focusWidget()) {
if (QWidget *p = qApp->focusWidget()) {
IContext *context = 0;
QWidget *p = focusWidget();
while (p) {
context = m_contextWidgets.value(p);
if (context) {
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