forked from qt-creator/qt-creator
Try to watch local variable in watchwindow-DND, too.
Fix codepath overlooked in
6886e485de by introducing
a WatchHandler::watchVariable().
Task-number: QTCREATORBUG-8120
Change-Id: Ibab2619754e0006f3c81810a6bfdf758261c169e
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -1167,12 +1167,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