diff --git a/src/plugins/debugger/breakwindow.cpp b/src/plugins/debugger/breakwindow.cpp index 1e499f9a3923d4d04719ce9397148197fcdbf262..35b6fdba6671ecf2e3031080df303740cdf39f1c 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)); }