mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Show correct group name when opening an entry from seach results.
This commit is contained in:
parent
23c787c4dd
commit
4daac65cc5
@ -430,14 +430,9 @@ void DatabaseWidget::switchToEntryEdit(Entry* entry)
|
||||
|
||||
void DatabaseWidget::switchToEntryEdit(Entry* entry, bool create)
|
||||
{
|
||||
Group* group = m_groupView->currentGroup();
|
||||
if (!group) {
|
||||
Q_ASSERT(m_entryView->inEntryListMode());
|
||||
group = m_lastGroup;
|
||||
}
|
||||
Q_ASSERT(group);
|
||||
Q_ASSERT(entry->group());
|
||||
|
||||
m_editEntryWidget->loadEntry(entry, create, false, group->name(), m_db);
|
||||
m_editEntryWidget->loadEntry(entry, create, false, entry->group()->name(), m_db);
|
||||
setCurrentWidget(m_editEntryWidget);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user