mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 06:02:29 -06:00
Correctly detect libtorrent version.
This commit is contained in:
@@ -216,7 +216,7 @@ public slots:
|
||||
|
||||
void capDownloadSpeed() {
|
||||
bool ok = false;
|
||||
#if LIBTORRENT_VERSION_NUM >= 001600
|
||||
#if LIBTORRENT_VERSION_NUM >= 1600
|
||||
int cur_limit = QBtSession::instance()->getSession()->settings().download_rate_limit;
|
||||
#else
|
||||
int cur_limit = QBtSession::instance()->getSession()->download_rate_limit();
|
||||
@@ -241,7 +241,7 @@ public slots:
|
||||
|
||||
void capUploadSpeed() {
|
||||
bool ok = false;
|
||||
#if LIBTORRENT_VERSION_NUM >= 001600
|
||||
#if LIBTORRENT_VERSION_NUM >= 1600
|
||||
int cur_limit = QBtSession::instance()->getSession()->settings().upload_rate_limit;
|
||||
#else
|
||||
int cur_limit = QBtSession::instance()->getSession()->upload_rate_limit();
|
||||
|
||||
Reference in New Issue
Block a user