Fixed crash with debugger when qml inspector is not enabled as plugin

This commit is contained in:
Lasse Holmstedt
2010-03-26 16:43:12 +01:00
parent 5c28561368
commit 62d1d6bf73
2 changed files with 4 additions and 3 deletions

View File

@@ -166,8 +166,11 @@ void DebuggerUISwitcher::addMenuAction(Core::Command *command, const QString &la
void DebuggerUISwitcher::setActiveLanguage(const QString &langName)
{
if (theDebuggerAction(SwitchLanguageAutomatically)->isChecked())
if (theDebuggerAction(SwitchLanguageAutomatically)->isChecked()
&& d->m_languages.contains(langName))
{
changeDebuggerUI(langName);
}
}
int DebuggerUISwitcher::activeLanguageId() const