From b61c47d42f3f956cedc62e74412c626febb6968c Mon Sep 17 00:00:00 2001 From: Florian Geyer Date: Wed, 16 May 2012 10:52:59 +0200 Subject: [PATCH] Sort entry view by group/title when switching to search/view respectively. --- src/gui/entry/EntryView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/entry/EntryView.cpp b/src/gui/entry/EntryView.cpp index 5850b4a2..a89b145f 100644 --- a/src/gui/entry/EntryView.cpp +++ b/src/gui/entry/EntryView.cpp @@ -104,12 +104,14 @@ Entry* EntryView::entryFromIndex(const QModelIndex& index) void EntryView::switchToSearch() { + sortByColumn(0, Qt::AscendingOrder); showColumn(0); m_inSearch = true; } void EntryView::switchToView() { + sortByColumn(1, Qt::AscendingOrder); hideColumn(0); m_inSearch = false; }