viewsdialog:fix next select index after removals

--the best user friednly index is the own that will
let the user to remove multiple views sequentely
work/spdx
Michail Vourlakos 4 years ago
parent 76bc442ade
commit bfb7c95ff5

@ -278,7 +278,7 @@ void Views::removeSelectedViews()
m_model->removeView(selectedviews[i].id); m_model->removeView(selectedviews[i].id);
} }
m_view->selectRow(qMax(0, selectionheadrow-1)); m_view->selectRow(qBound(0, selectionheadrow, m_model->rowCount()-1));
} }
void Views::selectRow(const QString &id) void Views::selectRow(const QString &id)

Loading…
Cancel
Save