mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 14:12:30 -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;
|
||||
}
|
||||
|
||||
@@ -66,9 +66,13 @@ class QBtSession : public QObject {
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(QBtSession)
|
||||
|
||||
private:
|
||||
explicit QBtSession();
|
||||
static QBtSession* m_instance;
|
||||
|
||||
public:
|
||||
// Constructor / Destructor
|
||||
QBtSession();
|
||||
static QBtSession* instance();
|
||||
static void drop();
|
||||
~QBtSession();
|
||||
QTorrentHandle getTorrentHandle(QString hash) const;
|
||||
std::vector<torrent_handle> getTorrents() const;
|
||||
|
||||
Reference in New Issue
Block a user