Commit 391dea86 authored by Tobias Hunger's avatar Tobias Hunger Committed by hjk

DebuggerItem: Compare against original item from DebuggerItemManager

Compare against the original item from the DebuggerItemManager, not
to the item stored in the model. This will keep the change flag, even
when switching back and forth between items in the model.

Task-number: QTCREATORBUG-10954
Change-Id: I54535c45e3c3e45fabbf83e0a35c3bd674158892
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent ea64a75a
......@@ -152,8 +152,8 @@ bool DebuggerItemModel::updateDebuggerStandardItem(const DebuggerItem &item, boo
QTC_ASSERT(parent, return false);
// Do not mark items as changed if they actually are not:
DebuggerItem orig = debuggerItem(sitem);
if (orig == item && DebuggerItemManager::findById(orig.id()))
const DebuggerItem *orig = DebuggerItemManager::findById(item.id());
if (orig && *orig == item)
changed = false;
int row = sitem->row();
......
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