Merge pull request #459 from chros73/fix_filter_started

Fix scheduled sorting/filtering bug on started and stopped views in rtorrent
This commit is contained in:
Jari Sundell
2016-08-03 22:04:59 +09:00
committed by GitHub
+4
View File
@@ -257,6 +257,10 @@ View::sort() {
void
View::filter() {
// Do NOT allow filter STARTED and STOPPED views: they are special
if (m_name == "started" || m_name == "stopped")
return;
// Parition the list in two steps so we know which elements changed.
iterator splitVisible = std::stable_partition(begin_visible(), end_visible(), view_downloads_filter(m_filter));
iterator splitFiltered = std::stable_partition(begin_filtered(), end_filtered(), view_downloads_filter(m_filter));