forked from qt-creator/qt-creator
Debugger: Re-add language-dependent context
Lost in f3bd7412ef.
Change-Id: I6091db212eff8a4ac15c67e99d9e88fab5b11647
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
4c3a144830
commit
95d8ed71db
@@ -3338,10 +3338,17 @@ void DebuggerPluginPrivate::updateUiForRunConfiguration(RunConfiguration *rc)
|
||||
|
||||
void DebuggerPluginPrivate::updateActiveLanguages()
|
||||
{
|
||||
// DebuggerLanguages languages = dd->m_currentEngine->runParameters().languages;
|
||||
const DebuggerLanguages languages = dd->m_currentEngine->runParameters().languages;
|
||||
// Id perspective = (languages & QmlLanguage) && !(languages & CppLanguage)
|
||||
// ? QmlPerspectiveId : CppPerspectiveId;
|
||||
// m_mainWindow->restorePerspective(perspective);
|
||||
for (DebuggerLanguage language: {QmlLanguage, CppLanguage}) {
|
||||
const Context context = m_contextsForLanguage.value(language);
|
||||
if (languages & language)
|
||||
ICore::addAdditionalContext(context);
|
||||
else
|
||||
ICore::removeAdditionalContext(context);
|
||||
}
|
||||
}
|
||||
|
||||
//bool DockWidgetEventFilter::eventFilter(QObject *obj, QEvent *event)
|
||||
|
||||
Reference in New Issue
Block a user