aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/breakwindow.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2009-06-17 16:00:03 +0200
committerhjk <[email protected]>2009-06-17 16:00:04 +0200
commit609f4a437b746671f30fd091662e125c56d54979 (patch)
tree4ea9ad9fe1e0e9ef2be3f749627f85537390333c /src/plugins/debugger/breakwindow.cpp
parent019fead33887773040b041a8b0d4ed7304d914ed (diff)
debugger: Rework watch model.
It's now properly using canFetchMore/fetchMore. cdb is not yet ported.
Diffstat (limited to 'src/plugins/debugger/breakwindow.cpp')
-rw-r--r--src/plugins/debugger/breakwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/breakwindow.cpp b/src/plugins/debugger/breakwindow.cpp
index 53f2f2c147a..399d5bda3c2 100644
--- a/src/plugins/debugger/breakwindow.cpp
+++ b/src/plugins/debugger/breakwindow.cpp
@@ -147,7 +147,7 @@ void BreakWindow::contextMenuEvent(QContextMenuEvent *ev)
QAction *act4 = new QAction(tr("Synchronize breakpoints"), &menu);
- QModelIndex idx0 = si.front();
+ QModelIndex idx0 = (si.size() ? si.front() : QModelIndex());
QModelIndex idx2 = idx0.sibling(idx0.row(), 2);
bool enabled = si.isEmpty() || model()->data(idx0, Qt::UserRole).toBool();
QString str5 = enabled ? tr("Disable breakpoint") : tr("Enable breakpoint");