Commit 3c6643cd authored by con's avatar con
Browse files

Fixes: Menu items disabled during keyboard navigation (Windows)

Reviewed-by: Thorbjørn Lindeijer
Task-number: QTCREATORBUG-865
parent e5f0ea6d
......@@ -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<QMenuBar*>(now))
// Prevent changing the context object just because the menu or a menu item is activated
if (qobject_cast<QMenuBar*>(now) || qobject_cast<QMenu*>(now))
return;
IContext *newContext = 0;
......
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