forked from qt-creator/qt-creator
Escape & in evaluation expressions
If somone watches "&foo", let's display the &, instead of making f an accelerator. Change-Id: I633801b2ca1a3f982ad159d62e7189503ce5f72b Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -581,7 +581,8 @@ static QString removeWatchActionText(QString exp)
|
||||
exp.truncate(30);
|
||||
exp.append(QLatin1String("..."));
|
||||
}
|
||||
return WatchTreeView::tr("Remove Expression Evaluator for \"%1\"").arg(exp);
|
||||
return WatchTreeView::tr("Remove Expression Evaluator for \"%1\"")
|
||||
.arg(exp.replace(QLatin1Char('&'), QLatin1String("&&")));
|
||||
}
|
||||
|
||||
static void copyToClipboard(const QString &clipboardText)
|
||||
|
||||
Reference in New Issue
Block a user