Skip to content
Snippets Groups Projects
Commit 119908de authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

save m_varValues before emiting the change notification

... otherwise oldValues equals newValues.
the signal is currently not connected anyway, but whatever.
parent 31e7e7c3
No related branches found
No related tags found
No related merge requests found
...@@ -1767,11 +1767,12 @@ void Qt4ProFileNode::applyEvaluate(bool parseResult, bool async) ...@@ -1767,11 +1767,12 @@ void Qt4ProFileNode::applyEvaluate(bool parseResult, bool async)
if (m_varValues != newVarValues) { if (m_varValues != newVarValues) {
Qt4VariablesHash oldValues = m_varValues;
m_varValues = newVarValues; m_varValues = newVarValues;
foreach (NodesWatcher *watcher, watchers()) foreach (NodesWatcher *watcher, watchers())
if (Qt4NodesWatcher *qt4Watcher = qobject_cast<Qt4NodesWatcher*>(watcher)) if (Qt4NodesWatcher *qt4Watcher = qobject_cast<Qt4NodesWatcher*>(watcher))
emit qt4Watcher->variablesChanged(this, m_varValues, newVarValues); emit qt4Watcher->variablesChanged(this, oldValues, m_varValues);
} }
createUiCodeModelSupport(); createUiCodeModelSupport();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment