Fix scheduled sorting/filtering bug on started and stopped views in rtorrent (See #3)

This commit is contained in:
chros
2016-07-06 23:15:04 +01:00
parent aac0ea48f7
commit a8c67b4aab
+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));