forked from qt-creator/qt-creator
		
	Introduced a single convenient function for updating additional contexts
While before you had to call add, then remove for each context id and then call update, now you call updateAdditionalContexts with a list of contexts to remove and add. It has the update step built in. Reviewed-by: con
This commit is contained in:
		| @@ -1229,13 +1229,10 @@ void DebuggerPlugin::handleStateChanged(int state) | ||||
|  | ||||
|     const bool startIsContinue = (state == InferiorStopped); | ||||
|     ICore *core = ICore::instance(); | ||||
|     if (startIsContinue) { | ||||
|         core->addAdditionalContext(m_gdbRunningContext); | ||||
|         core->updateContext(); | ||||
|     } else { | ||||
|         core->removeAdditionalContext(m_gdbRunningContext); | ||||
|         core->updateContext(); | ||||
|     } | ||||
|     if (startIsContinue) | ||||
|         core->updateAdditionalContexts(QList<int>(), QList<int>() << m_gdbRunningContext); | ||||
|     else | ||||
|         core->updateAdditionalContexts(QList<int>() << m_gdbRunningContext, QList<int>()); | ||||
|  | ||||
|     const bool started = state == InferiorRunning | ||||
|         || state == InferiorRunningRequested | ||||
|   | ||||
		Reference in New Issue
	
	Block a user