Commit c9330dc6 authored by Kai Koehne's avatar Kai Koehne
Browse files

Debugger: Avoid runtime warning when QmlJSInspector plugin is not loaded



Check whether there's actually a toolbar for QML registered.

Change-Id: I58ba1330c2bbc4ac0a8962474662a5e76e902f17
Reviewed-by: default avatarAurindam Jana <aurindam.jana@nokia.com>
parent bab2cb5f
......@@ -353,7 +353,8 @@ void DebuggerMainWindowPrivate::activateQmlCppLayout()
ICore *core = ICore::instance();
Context qmlCppContext = m_contextsForLanguage.value(QmlLanguage);
qmlCppContext.add(m_contextsForLanguage.value(CppLanguage));
m_toolBarStack->setCurrentWidget(m_toolBars.value(QmlLanguage));
if (m_toolBars.contains(QmlLanguage))
m_toolBarStack->setCurrentWidget(m_toolBars.value(QmlLanguage));
if (m_previousDebugLanguages & QmlLanguage) {
m_dockWidgetActiveStateQmlCpp = q->saveSettings();
......
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