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: hjk <hjk121@nokiamail.com>
This commit is contained in:
Tobias Hunger
2013-12-02 11:15:38 +01:00
committed by hjk
parent ea64a75a8d
commit 391dea86a7

View File

@@ -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();