forked from qt-creator/qt-creator
Fixes: Menu items disabled during keyboard navigation (Windows)
Reviewed-by: Thorbjørn Lindeijer Task-number: QTCREATORBUG-865
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user