Commit 7eb8a08c authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger: Fix compile on Windows.

Change-Id: I4994fdfd260d80eec8a0bfda903c553d2d563706
Reviewed-by: default avatarFriedemann Kleint <>
parent 9eed55f3
......@@ -1318,13 +1318,13 @@ void WatchModel::insertDataItem(const WatchData &data, bool destructive)
// Add new entry.
WatchItem *parent = findItem(parentName(data.iname));
QTC_ASSERT(parent, return);
WatchItem *item = createItem(data);
item->parent = parent;
item->changed = true;
const int row = findInsertPosition(parent->children, item);
WatchItem *newItem = createItem(data);
newItem->parent = parent;
newItem->changed = true;
const int row = findInsertPosition(parent->children, newItem);
QModelIndex idx = watchIndex(parent);
beginInsertRows(idx, row, row);
parent->children.insert(row, item);
parent->children.insert(row, newItem);
if (m_expandedINames.contains(parent->iname))
emit itemIsExpanded(idx);
Supports Markdown
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