save m_varValues before emiting the change notification

... otherwise oldValues equals newValues.
the signal is currently not connected anyway, but whatever.
This commit is contained in:
Oswald Buddenhagen
2011-02-09 19:24:23 +01:00
parent 31e7e7c353
commit 119908decc

View File

@@ -1767,11 +1767,12 @@ void Qt4ProFileNode::applyEvaluate(bool parseResult, bool async)
if (m_varValues != newVarValues) {
Qt4VariablesHash oldValues = m_varValues;
m_varValues = newVarValues;
foreach (NodesWatcher *watcher, watchers())
if (Qt4NodesWatcher *qt4Watcher = qobject_cast<Qt4NodesWatcher*>(watcher))
emit qt4Watcher->variablesChanged(this, m_varValues, newVarValues);
emit qt4Watcher->variablesChanged(this, oldValues, m_varValues);
}
createUiCodeModelSupport();