diff options
author | hjk <[email protected]> | 2009-06-17 16:00:03 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2009-06-17 16:00:04 +0200 |
commit | 609f4a437b746671f30fd091662e125c56d54979 (patch) | |
tree | 4ea9ad9fe1e0e9ef2be3f749627f85537390333c /src/plugins/debugger/breakwindow.cpp | |
parent | 019fead33887773040b041a8b0d4ed7304d914ed (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.cpp | 2 |
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"); |