forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user