Sort entry view by group/title when switching to search/view respectively.

This commit is contained in:
Florian Geyer 2012-05-16 10:52:59 +02:00
parent eb82df5994
commit b61c47d42f

View File

@ -104,12 +104,14 @@ Entry* EntryView::entryFromIndex(const QModelIndex& index)
void EntryView::switchToSearch() void EntryView::switchToSearch()
{ {
sortByColumn(0, Qt::AscendingOrder);
showColumn(0); showColumn(0);
m_inSearch = true; m_inSearch = true;
} }
void EntryView::switchToView() void EntryView::switchToView()
{ {
sortByColumn(1, Qt::AscendingOrder);
hideColumn(0); hideColumn(0);
m_inSearch = false; m_inSearch = false;
} }