aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorhjk <[email protected]>2010-01-15 12:22:21 +0100
committerhjk <[email protected]>2010-01-15 15:06:40 +0100
commitb4e99074afd9acbd6c7c71b4c0ac36bd00613fa8 (patch)
tree205dc3aee667217c1f8fe961613311c96c8084aa /src/plugins
parent389033d038f89783272aecf951df141e228b7e4e (diff)
debugger: better positioning of current entry when deleting breakpoints
Diffstat (limited to 'src/plugins')
-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 1e499f9a392..35b6fdba667 100644
--- a/src/plugins/debugger/breakwindow.cpp
+++ b/src/plugins/debugger/breakwindow.cpp
@@ -282,7 +282,7 @@ void BreakWindow::deleteBreakpoints(QList<int> list)
for (int i = list.size(); --i >= 0; )
emit breakpointDeleted(list.at(i));
- const int row = qMax(firstRow, model()->rowCount() - list.size() - 1);
+ const int row = qMin(firstRow, model()->rowCount() - 1);
if (row >= 0)
setCurrentIndex(model()->index(row, 0));
}