forked from qt-creator/qt-creator
Debugger UI: Fix crash if QML plugin is not present
This commit is contained in:
@@ -317,8 +317,11 @@ void DebuggerUISwitcher::modeChanged(Core::IMode *mode)
|
||||
if (isCurrentProjectQmlCppBased())
|
||||
activeLangs |= QmlLanguage;
|
||||
|
||||
if (d->m_activateCppAction)
|
||||
d->m_activateCppAction->setChecked(activeLangs & CppLanguage);
|
||||
if (d->m_activateQmlAction)
|
||||
d->m_activateQmlAction->setChecked(activeLangs & QmlLanguage);
|
||||
|
||||
updateActiveLanguages();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user