From 71bef1852de6afdac46f761cc2ec560de3bf83c8 Mon Sep 17 00:00:00 2001 From: Gabriele Date: Sun, 21 Dec 2014 20:21:59 +0100 Subject: [PATCH] WebUI: Add torrents paused because of errors in Paused and Download list Torrents paused because of errors are considered as torrents paused and in download in the regular UI. Do the same in the WebUI for consistency. Closes #2319. --- src/webui/qtorrentfilter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/webui/qtorrentfilter.cpp b/src/webui/qtorrentfilter.cpp index 0572bf66a..9797f5ef9 100644 --- a/src/webui/qtorrentfilter.cpp +++ b/src/webui/qtorrentfilter.cpp @@ -74,7 +74,8 @@ bool QTorrentFilter::isTorrentDownloading(const QTorrentHandle &h) const || state == QTorrentState::StalledDownloading || state == QTorrentState::CheckingDownloading || state == QTorrentState::PausedDownloading - || state == QTorrentState::QueuedDownloading; + || state == QTorrentState::QueuedDownloading + || state == QTorrentState::Error; } bool QTorrentFilter::isTorrentCompleted(const QTorrentHandle &h) const @@ -93,7 +94,8 @@ bool QTorrentFilter::isTorrentPaused(const QTorrentHandle &h) const const QTorrentState state = h.torrentState(); return state == QTorrentState::PausedDownloading - || state == QTorrentState::PausedUploading; + || state == QTorrentState::PausedUploading + || state == QTorrentState::Error; } bool QTorrentFilter::isTorrentActive(const QTorrentHandle &h) const