From 3c6643cd75666bfc0ada05a0cffb48a230631b1a Mon Sep 17 00:00:00 2001 From: con Date: Fri, 11 Jun 2010 14:48:08 +0200 Subject: [PATCH] Fixes: Menu items disabled during keyboard navigation (Windows) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Thorbjørn Lindeijer Task-number: QTCREATORBUG-865 --- src/plugins/coreplugin/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp index 1555395c741..bde3a7ae25c 100644 --- a/src/plugins/coreplugin/mainwindow.cpp +++ b/src/plugins/coreplugin/mainwindow.cpp @@ -1078,8 +1078,8 @@ void MainWindow::updateFocusWidget(QWidget *old, QWidget *now) { Q_UNUSED(old) - // Prevent changing the context object just because the menu is activated - if (qobject_cast(now)) + // Prevent changing the context object just because the menu or a menu item is activated + if (qobject_cast(now) || qobject_cast(now)) return; IContext *newContext = 0;