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

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 <>
parent ea64a75a
...@@ -152,8 +152,8 @@ bool DebuggerItemModel::updateDebuggerStandardItem(const DebuggerItem &item, boo ...@@ -152,8 +152,8 @@ bool DebuggerItemModel::updateDebuggerStandardItem(const DebuggerItem &item, boo
QTC_ASSERT(parent, return false); QTC_ASSERT(parent, return false);
// Do not mark items as changed if they actually are not: // Do not mark items as changed if they actually are not:
DebuggerItem orig = debuggerItem(sitem); const DebuggerItem *orig = DebuggerItemManager::findById(;
if (orig == item && DebuggerItemManager::findById( if (orig && *orig == item)
changed = false; changed = false;
int row = sitem->row(); int row = sitem->row();
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