Debugger: Fix double clicking watch handler

Double clicking watch handler window without hitting an item
used to trigger 'Add New Expression Evaluator...'.

Change-Id: I452eb56476f7186ac36f7a9f1e9d2a43c109a9b1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2016-09-21 14:12:50 +02:00
parent d4e68b7e09
commit a8493ae987

View File

@@ -1056,7 +1056,7 @@ bool WatchModel::setData(const QModelIndex &idx, const QVariant &value, int role
}
if (ev.as<QMouseEvent>(QEvent::MouseButtonDblClick)) {
if (!item) {
if (!item->parent()) { // if item is the invisible root item
inputNewExpression();
return true;
}