blob: a7a7924138d20026df5fc2b610a9ad3410dafc67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- rel-0.9.6/src/core/view.cc 2015-09-03 20:03:30.000000000 +0100
+++ rtorrent-0.9.6/src/core/view.cc 2016-07-06 17:13:47.180101179 +0100
@@ -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));
|