diff --git a/src/gui/entry/EntryView.cpp b/src/gui/entry/EntryView.cpp index 5850b4a23..a89b145fa 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; }