diff options
author | xsmile | 2017-03-13 01:35:33 +0100 |
---|---|---|
committer | xsmile | 2017-03-13 01:35:33 +0100 |
commit | 38109c3c93248295add57613d90afc8fb212ff09 (patch) | |
tree | 6e02fda0ea753571bd880c23af910323c2e26924 /ps-fix-sort-started-stopped-views_all.patch | |
parent | f34c59729d8a4eb55e365a5eff9489e20722e3ec (diff) | |
download | aur-38109c3c93248295add57613d90afc8fb212ff09.tar.gz |
update
Diffstat (limited to 'ps-fix-sort-started-stopped-views_all.patch')
-rw-r--r-- | ps-fix-sort-started-stopped-views_all.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ps-fix-sort-started-stopped-views_all.patch b/ps-fix-sort-started-stopped-views_all.patch new file mode 100644 index 000000000000..a7a7924138d2 --- /dev/null +++ b/ps-fix-sort-started-stopped-views_all.patch @@ -0,0 +1,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)); |