diff options
Diffstat (limited to 'src/plugins')
-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 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)); } |