forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/2.6'
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user