Merge remote-tracking branch 'origin/2.6'

This commit is contained in:
Eike Ziller
2012-10-29 15:13:06 +01:00
21 changed files with 109 additions and 67 deletions

View File

@@ -1170,12 +1170,7 @@ public slots:
exp = fixCppExpression(exp);
if (exp.isEmpty())
return;
const QString name = exp;
// Prefer to watch an existing local variable by its expression (address) if it can be found.
WatchHandler *watchHandler = currentEngine()->watchHandler();
if (const WatchData *localVariable = watchHandler->findCppLocalVariable(exp))
exp = QLatin1String(localVariable->exp);
watchHandler->watchExpression(exp, name);
currentEngine()->watchHandler()->watchVariable(exp);
}
void handleExecExit()