Skip to content
Snippets Groups Projects
Commit b4e99074 authored by hjk's avatar hjk
Browse files

debugger: better positioning of current entry when deleting breakpoints

parent 389033d0
No related branches found
No related tags found
No related merge requests found
...@@ -282,7 +282,7 @@ void BreakWindow::deleteBreakpoints(QList<int> list) ...@@ -282,7 +282,7 @@ void BreakWindow::deleteBreakpoints(QList<int> list)
for (int i = list.size(); --i >= 0; ) for (int i = list.size(); --i >= 0; )
emit breakpointDeleted(list.at(i)); 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) if (row >= 0)
setCurrentIndex(model()->index(row, 0)); setCurrentIndex(model()->index(row, 0));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment