forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user