Commit 119908de authored by Oswald Buddenhagen's avatar Oswald Buddenhagen

save m_varValues before emiting the change notification

... otherwise oldValues equals newValues.
the signal is currently not connected anyway, but whatever.
parent 31e7e7c3
......@@ -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();
......
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