Commit 705472d3 authored by Aurindam Jana's avatar Aurindam Jana Committed by Aurindam Jana

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
...@@ -518,6 +518,9 @@ void QmlEngine::executeJumpToLine(const ContextData &data) ...@@ -518,6 +518,9 @@ void QmlEngine::executeJumpToLine(const ContextData &data)
void QmlEngine::activateFrame(int index) void QmlEngine::activateFrame(int index)
{ {
if (state() != InferiorStopOk && state() != InferiorUnrunnable)
return;
if (d->m_adapter.activeDebuggerClient()) { if (d->m_adapter.activeDebuggerClient()) {
logMessage(LogSend, QString("%1 %2").arg(QString("ACTIVATE_FRAME"), QString::number(index))); logMessage(LogSend, QString("%1 %2").arg(QString("ACTIVATE_FRAME"), QString::number(index)));
d->m_adapter.activeDebuggerClient()->activateFrame(index); d->m_adapter.activeDebuggerClient()->activateFrame(index);
......
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