mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Fix possible rule saving issue
Matching articles are now previewable in the rss downloader dialog Make sure Rss downloading is enabled before checking for matching rules
This commit is contained in:
parent
345222cf42
commit
c387c15eb0
18 changed files with 174 additions and 48 deletions
|
@ -35,7 +35,9 @@
|
|||
#include "rssarticle.h"
|
||||
#include "rssdownloadrulelist.h"
|
||||
|
||||
RssManager::RssManager(QBtSession *BTSession): RssFolder(0, this, BTSession, QString::null) {
|
||||
RssManager* RssManager::m_instance = 0;
|
||||
|
||||
RssManager::RssManager(): RssFolder(0, this, QBtSession::instance(), QString::null) {
|
||||
loadStreamList();
|
||||
connect(&newsRefresher, SIGNAL(timeout()), this, SLOT(refreshAll()));
|
||||
refreshInterval = RssSettings::getRSSRefreshInterval();
|
||||
|
@ -137,3 +139,16 @@ QList<RssArticle*> RssManager::sortNewsList(const QList<RssArticle*>& news_list)
|
|||
}
|
||||
return new_list;
|
||||
}
|
||||
|
||||
RssManager * RssManager::instance()
|
||||
{
|
||||
if(!m_instance)
|
||||
m_instance = new RssManager;
|
||||
return m_instance;
|
||||
}
|
||||
|
||||
void RssManager::drop()
|
||||
{
|
||||
if(m_instance)
|
||||
delete m_instance;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue