mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-19 12:14:37 -04:00
Prevent selection of both entries when an entry is cloned via shortcut.
This commit is contained in:
parent
8bff332be0
commit
9f21b54c4e
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ bool EntryView::isSingleEntrySelected()
|
||||||
|
|
||||||
void EntryView::setCurrentEntry(Entry* entry)
|
void EntryView::setCurrentEntry(Entry* entry)
|
||||||
{
|
{
|
||||||
setCurrentIndex(m_sortModel->mapFromSource(m_model->indexFromEntry(entry)));
|
selectionModel()->setCurrentIndex(m_sortModel->mapFromSource(m_model->indexFromEntry(entry)),
|
||||||
|
QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);
|
||||||
}
|
}
|
||||||
|
|
||||||
Entry* EntryView::entryFromIndex(const QModelIndex& index)
|
Entry* EntryView::entryFromIndex(const QModelIndex& index)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue