mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Prevent selection of both entries when an entry is cloned via shortcut.
This commit is contained in:
parent
8bff332be0
commit
9f21b54c4e
@ -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…
Reference in New Issue
Block a user