Skip to content
Snippets Groups Projects
Commit 705472d3 authored by Aurindam Jana's avatar Aurindam Jana Committed by Aurindam Jana
Browse files

QmlEngine: Activate selected frame only in specific states


Selecting a row in stack window activates the frame only if the
state is InferiorStopOk or InferiorUnrunnable, as followed by
gdbengine.

Change-Id: Iad6a16816c0ffd634572f26e1dcf8c3c577502db
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent 405b8738
No related branches found
No related tags found
No related merge requests found
......@@ -518,6 +518,9 @@ void QmlEngine::executeJumpToLine(const ContextData &data)
void QmlEngine::activateFrame(int index)
{
if (state() != InferiorStopOk && state() != InferiorUnrunnable)
return;
if (d->m_adapter.activeDebuggerClient()) {
logMessage(LogSend, QString("%1 %2").arg(QString("ACTIVATE_FRAME"), QString::number(index)));
d->m_adapter.activeDebuggerClient()->activateFrame(index);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment