mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-11 16:49:22 +00:00
Fix scheduled sorting/filtering bug on started and stopped views in rtorrent (See #3)
This commit is contained in:
@@ -257,6 +257,10 @@ View::sort() {
|
|||||||
|
|
||||||
void
|
void
|
||||||
View::filter() {
|
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.
|
// 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 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));
|
iterator splitFiltered = std::stable_partition(begin_filtered(), end_filtered(), view_downloads_filter(m_filter));
|
||||||
|
|||||||
Reference in New Issue
Block a user