Commit 79251408 authored by David Schulz's avatar David Schulz

CDB: Fix expanding watchers.

Discard old watchers only when entering a new frame.

Change-Id: I4a0ac6af7c6970f7a0d4c58636bf9f51ecab9505
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent b4db657c
...@@ -1396,9 +1396,10 @@ void CdbEngine::doUpdateLocals(const UpdateParameters &updateParameters) ...@@ -1396,9 +1396,10 @@ void CdbEngine::doUpdateLocals(const UpdateParameters &updateParameters)
str << '"'; str << '"';
} }
} }
if (!partialUpdate || isWatch) { // Perform watches synchronization only for full updates
// Perform watches synchronization if (!partialUpdate)
str << blankSeparator << "-W"; str << blankSeparator << "-W";
if (!partialUpdate || isWatch) {
const WatcherHash watcherHash = WatchHandler::watcherNames(); const WatcherHash watcherHash = WatchHandler::watcherNames();
if (!watcherHash.isEmpty()) { if (!watcherHash.isEmpty()) {
const WatcherHash::const_iterator cend = watcherHash.constEnd(); const WatcherHash::const_iterator cend = watcherHash.constEnd();
......
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