Debugger: Fix marking values as changed

Correctly update the cache before handling new information
to be able to display different colors for values to mark
them as unchanged or changed.

Fixes: QTCREATORBUG-29344
Change-Id: I1af9da4947d544248e5217f4e53f6f4f1c598bda
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2025-03-06 11:37:38 +01:00
parent 08a5cacab1
commit 1807c398aa

View File

@@ -1228,6 +1228,7 @@ void QmlEnginePrivate::handleEvaluateExpression(const QVariantMap &response,
QVariant bodyVal = response.value(BODY).toMap();
QmlV8ObjectData body = extractData(bodyVal);
WatchHandler *watchHandler = engine->watchHandler();
watchHandler->resetValueCache();
auto item = new WatchItem;
item->iname = iname;