From b5a0ac300fefe204bd32a55372582f757301d431 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 26 Apr 2012 15:58:46 +0200 Subject: [PATCH] debugger: do nothing if the L&E context menu is cancelled Task-number: QTCREATORBUG-7319 Change-Id: I9eb9c3612498af37cb9a8787a25939c96637882f Reviewed-by: hjk --- src/plugins/debugger/watchwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/watchwindow.cpp b/src/plugins/debugger/watchwindow.cpp index 89a0296efaa..1c98f5f3097 100644 --- a/src/plugins/debugger/watchwindow.cpp +++ b/src/plugins/debugger/watchwindow.cpp @@ -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,