forked from qt-creator/qt-creator
Fixed crash with debugger when qml inspector is not enabled as plugin
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user