Commit b5a0ac30 authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: do nothing if the L&E context menu is cancelled

Task-number: QTCREATORBUG-7319
Change-Id: I9eb9c3612498af37cb9a8787a25939c96637882f
Reviewed-by: default avatarhjk <>
parent 44188cf7
......@@ -893,7 +893,9 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev)
QAction *act = menu.exec(ev->globalPos());
if (act == actInsertNewWatchItem) {
if (!act) {
} else if (act == actInsertNewWatchItem) {
bool ok;
QString newExp = QInputDialog::getText(this, tr("Enter watch expression"),
tr("Expression:"), QLineEdit::Normal,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment