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:
Florian Geyer 2013-03-10 20:03:22 +01:00
parent 36ad91b447
commit f9dc314e72

View File

@ -430,9 +430,14 @@ void DatabaseWidget::switchToEntryEdit(Entry* entry)
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);
}