mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Fix compilation with libtorrent 1.x.x.
This commit is contained in:
@@ -1065,7 +1065,7 @@ public:
|
||||
return value(QString::fromUtf8("Preferences/Connection/InetAddress"), QString()).toString();
|
||||
}
|
||||
|
||||
#if LIBTORRENT_VERSION_MINOR > 15
|
||||
#if LIBTORRENT_VERSION_MINOR > 15 || LIBTORRENT_VERSION_MAJOR > 0
|
||||
bool isAnonymousModeEnabled() const {
|
||||
return value(QString::fromUtf8("Preferences/Advanced/AnonymousMode"), false).toBool();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user