Don't process new/updated RSS rules when disabled

This commit is contained in:
Vladimir Golovnev (Glassez) 2017-12-27 20:01:40 +03:00 committed by sledgehammer999
commit 9299e3f371
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -424,6 +424,8 @@ bool AutoDownloader::isProcessingEnabled() const
void AutoDownloader::resetProcessingQueue() void AutoDownloader::resetProcessingQueue()
{ {
m_processingQueue.clear(); m_processingQueue.clear();
if (!m_processingEnabled) return;
foreach (Article *article, Session::instance()->rootFolder()->articles()) { foreach (Article *article, Session::instance()->rootFolder()->articles()) {
if (!article->isRead() && !article->torrentUrl().isEmpty()) if (!article->isRead() && !article->torrentUrl().isEmpty())
addJobForArticle(article); addJobForArticle(article);