Fixes: Menu items disabled during keyboard navigation (Windows)

Reviewed-by: Thorbjørn Lindeijer
Task-number: QTCREATORBUG-865
This commit is contained in:
con
2010-06-11 14:48:08 +02:00
parent e5f0ea6d03
commit 3c6643cd75

View File

@@ -1078,8 +1078,8 @@ void MainWindow::updateFocusWidget(QWidget *old, QWidget *now)
{ {
Q_UNUSED(old) Q_UNUSED(old)
// Prevent changing the context object just because the menu is activated // Prevent changing the context object just because the menu or a menu item is activated
if (qobject_cast<QMenuBar*>(now)) if (qobject_cast<QMenuBar*>(now) || qobject_cast<QMenu*>(now))
return; return;
IContext *newContext = 0; IContext *newContext = 0;