mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Sort entry view by group/title when switching to search/view respectively.
This commit is contained in:
parent
eb82df5994
commit
b61c47d42f
@ -104,12 +104,14 @@ Entry* EntryView::entryFromIndex(const QModelIndex& index)
|
||||
|
||||
void EntryView::switchToSearch()
|
||||
{
|
||||
sortByColumn(0, Qt::AscendingOrder);
|
||||
showColumn(0);
|
||||
m_inSearch = true;
|
||||
}
|
||||
|
||||
void EntryView::switchToView()
|
||||
{
|
||||
sortByColumn(1, Qt::AscendingOrder);
|
||||
hideColumn(0);
|
||||
m_inSearch = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user