commit da7436d6b213afaa786a53a6ef2de4414d51f760 parent 9a05cd064ffae63d8d139663d6d75b0cdfe9faae Author: cfillion <cfillion@users.noreply.github.com> Date: Sun, 17 Jul 2016 01:04:01 -0400 browser: fix sorting by last update when a type filter is enabled Diffstat:
M | src/browser.cpp | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/browser.cpp b/src/browser.cpp @@ -96,8 +96,8 @@ void Browser::onInit() m_list->sortByColumn(1); m_list->setSortCallback(7 /* last update */, [&] (const int ai, const int bi) { - const Entry &a = m_entries[ai]; - const Entry &b = m_entries[bi]; + const Entry &a = m_entries[m_visibleEntries[ai]]; + const Entry &b = m_entries[m_visibleEntries[bi]]; if(!a.latest) return -1;