mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-21 17:41:53 -08:00
Fix first entry is not selected when a search is performed (#9868)
This commit is contained in:
1 parent
6b67f587e5
commit
cd7a53abbb
2 files changed
+9
-1
No files matched your search
@@ -219,11 +219,12 @@ void EntryView::displaySearch(const QList<Entry*>& entries)
|
||||
m_model->setEntries(entries);
|
||||
header()->showSection(EntryModel::ParentGroup);
|
||||
|
||||
setFirstEntryActive();
|
||||
|
||||
// Reset sort column to 'Group', overrides DatabaseWidgetStateSync
|
||||
m_sortModel->sort(EntryModel::ParentGroup, Qt::AscendingOrder);
|
||||
sortByColumn(EntryModel::ParentGroup, Qt::AscendingOrder);
|
||||
|
||||
setFirstEntryActive();
|
||||
m_inSearchMode = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user