forked from qt-creator/qt-creator
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:
@@ -893,7 +893,9 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
|||||||
|
|
||||||
QAction *act = menu.exec(ev->globalPos());
|
QAction *act = menu.exec(ev->globalPos());
|
||||||
|
|
||||||
if (act == actInsertNewWatchItem) {
|
if (!act) {
|
||||||
|
;
|
||||||
|
} else if (act == actInsertNewWatchItem) {
|
||||||
bool ok;
|
bool ok;
|
||||||
QString newExp = QInputDialog::getText(this, tr("Enter watch expression"),
|
QString newExp = QInputDialog::getText(this, tr("Enter watch expression"),
|
||||||
tr("Expression:"), QLineEdit::Normal,
|
tr("Expression:"), QLineEdit::Normal,
|
||||||
|
|||||||
Reference in New Issue
Block a user