Commit 7e380e9d authored by Aurindam Jana's avatar Aurindam Jana Committed by hjk

StackHandler: Set Current Index

Set the current Index as 0 (topmost stack frame)
when setFrames() is called.

Change-Id: Iff0acd672930b51b53ef7ad0335b62d463c14500
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent e3087ff7
......@@ -197,8 +197,10 @@ void StackHandler::setFrames(const StackFrames &frames, bool canExpand)
m_contentsValid = true;
m_canExpand = canExpand;
m_stackFrames = frames;
if (m_currentIndex >= m_stackFrames.size())
setCurrentIndex(m_stackFrames.size() - 1);
if (m_stackFrames.size() >= 0)
setCurrentIndex(0);
else
m_currentIndex = -1;
reset();
emit stackChanged();
}
......
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