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