mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 14:04:23 +00:00
- Suppress compilation warning when geoip is not embedded in qBittorrent executable
This commit is contained in:
parent
906f2bab1e
commit
d2dd29c35a
@ -42,12 +42,13 @@ using namespace libtorrent;
|
|||||||
|
|
||||||
class GeoIP {
|
class GeoIP {
|
||||||
protected:
|
protected:
|
||||||
static QString geoipFolder(bool embedded=false) {
|
|
||||||
#ifdef WITH_GEOIP_EMBEDDED
|
#ifdef WITH_GEOIP_EMBEDDED
|
||||||
|
static QString geoipFolder(bool embedded=false) {
|
||||||
if(embedded)
|
if(embedded)
|
||||||
return ":/geoip/";
|
return ":/geoip/";
|
||||||
return misc::qBittorrentPath()+"geoip"+QDir::separator();
|
return misc::qBittorrentPath()+"geoip"+QDir::separator();
|
||||||
#else
|
#else
|
||||||
|
static QString geoipFolder(bool) {
|
||||||
if(QFile::exists("/usr/local/share/GeoIP/GeoIP.dat"))
|
if(QFile::exists("/usr/local/share/GeoIP/GeoIP.dat"))
|
||||||
return "/usr/local/share/GeoIP/";
|
return "/usr/local/share/GeoIP/";
|
||||||
if(QFile::exists("/var/lib/GeoIP/GeoIP.dat"))
|
if(QFile::exists("/var/lib/GeoIP/GeoIP.dat"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user