diff options
Diffstat (limited to 'src/plugins/debugger/watchwindow.cpp')
-rw-r--r-- | src/plugins/debugger/watchwindow.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/debugger/watchwindow.cpp b/src/plugins/debugger/watchwindow.cpp index f6e2fd01cb..71ac3bb1e6 100644 --- a/src/plugins/debugger/watchwindow.cpp +++ b/src/plugins/debugger/watchwindow.cpp @@ -96,7 +96,7 @@ public: } else if (index.column() == 0) { // the watcher name column theDebuggerAction(RemoveWatchExpression)->trigger(exp); - theDebuggerAction(WatchExpression)->trigger(lineEdit->text()); + theDebuggerAction(WatchExpression)->trigger(value); } } @@ -175,8 +175,6 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev) QModelIndex idx = indexAt(ev->pos()); QModelIndex mi0 = idx.sibling(idx.row(), 0); QString exp = model()->data(mi0).toString(); - QModelIndex mi1 = idx.sibling(idx.row(), 0); - QString value = model()->data(mi1).toString(); menu.addSeparator(); int type = (m_type == LocalsType) ? WatchExpression : RemoveWatchExpression; |