Commit 62d1d6bf authored by Lasse Holmstedt's avatar Lasse Holmstedt
Browse files

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

parent 5c285613
......@@ -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
......
......@@ -52,8 +52,6 @@
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/command.h>
#include <extensionsystem/pluginmanager.h>
#include <QtCore/QStringList>
#include <QtCore/QtPlugin>
#include <QtCore/QTimer>
......
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