Commit 71dfe61c authored by Aurindam Jana's avatar Aurindam Jana Committed by hjk
Browse files

WatchHandler: Init WatchCounter correctly.



Change-Id: Ief2078b0109c1152d34519869d0e0972bd01ed3c
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 5d2a23df
......@@ -1185,10 +1185,11 @@ void WatchModel::formatRequests(QByteArray *out, const WatchItem *item) const
///////////////////////////////////////////////////////////////////////
WatchHandler::WatchHandler(DebuggerEngine *engine)
: m_watcherCounter(0)
{
m_engine = engine;
m_inChange = false;
m_watcherCounter = debuggerCore()->sessionValue("Watchers")
.toStringList().count();
m_return = new WatchModel(this, ReturnWatch);
m_locals = new WatchModel(this, LocalsWatch);
......@@ -1554,6 +1555,7 @@ void WatchHandler::loadSessionData()
{
loadTypeFormats();
m_watcherNames.clear();
m_watcherCounter = 0;
QVariant value = debuggerCore()->sessionValue("Watchers");
foreach (WatchItem *item, m_watchers->rootItem()->children)
m_watchers->destroyItem(item);
......
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