mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-24 15:25:31 -04:00
Select entry above deleted entry
* Fix #6304 - Don't cause the list view to scroll to the top when deleting any entry in the list.
This commit is contained in:
parent
746276edea
commit
af9eb6d6b1
3 changed files with 24 additions and 3 deletions
|
@ -289,6 +289,11 @@ Entry* EntryView::entryFromIndex(const QModelIndex& index)
|
|||
}
|
||||
}
|
||||
|
||||
QModelIndex EntryView::indexFromEntry(Entry* entry)
|
||||
{
|
||||
return m_sortModel->mapFromSource(m_model->indexFromEntry(entry));
|
||||
}
|
||||
|
||||
int EntryView::currentEntryIndex()
|
||||
{
|
||||
QModelIndexList list = selectionModel()->selectedRows();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue