mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06: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:
@@ -68,6 +68,8 @@
|
||||
#include <boost/filesystem/exception.hpp>
|
||||
#include <queue>
|
||||
|
||||
QBtSession* QBtSession::m_instance = 0;
|
||||
|
||||
const int MAX_TRACKER_ERRORS = 2;
|
||||
const float MAX_RATIO = 100.;
|
||||
enum VersionType { NORMAL,ALPHA,BETA,RELEASE_CANDIDATE,DEVEL };
|
||||
@@ -2628,3 +2630,17 @@ void QBtSession::startUpTorrents() {
|
||||
settings.setValue("ported_to_new_savepath_system", true);
|
||||
qDebug("Unfinished torrents resumed");
|
||||
}
|
||||
|
||||
QBtSession * QBtSession::instance()
|
||||
{
|
||||
if(!m_instance) {
|
||||
m_instance = new QBtSession;
|
||||
}
|
||||
return m_instance;
|
||||
}
|
||||
|
||||
void QBtSession::drop()
|
||||
{
|
||||
if(m_instance)
|
||||
delete m_instance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user