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

Task-number: QTCREATORBUG-7319
Change-Id: I9eb9c3612498af37cb9a8787a25939c96637882f
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-04-26 15:58:46 +02:00
committed by hjk
parent 44188cf7f5
commit b5a0ac300f

View File

@@ -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,