- Make everything compile back with libtorrent v0.14

- Fix crash in search engine destructor if downloads are running
This commit is contained in:
Christophe Dumez
2009-11-18 10:29:20 +00:00
parent b9387cf4c4
commit 4ca2d060ea
11 changed files with 54 additions and 23 deletions

View File

@@ -99,6 +99,7 @@ public:
}
#ifdef LIBTORRENT_0_15
static void setSeedingMode(QString hash,bool seed){
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent-resume"));
QHash<QString, QVariant> all_data = settings.value("torrents-tmp", QHash<QString, QVariant>()).toHash();
@@ -116,7 +117,7 @@ public:
return data["seeding"].toBool();
return false;
}
#endif
static QString getSavePath(QString hash) {
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent-resume"));