Browse Source

- Suppress compilation warning when geoip is not embedded in qBittorrent executable

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
d2dd29c35a
  1. 3
      src/geoip.h

3
src/geoip.h

@ -42,12 +42,13 @@ using namespace libtorrent; @@ -42,12 +42,13 @@ using namespace libtorrent;
class GeoIP {
protected:
static QString geoipFolder(bool embedded=false) {
#ifdef WITH_GEOIP_EMBEDDED
static QString geoipFolder(bool embedded=false) {
if(embedded)
return ":/geoip/";
return misc::qBittorrentPath()+"geoip"+QDir::separator();
#else
static QString geoipFolder(bool) {
if(QFile::exists("/usr/local/share/GeoIP/GeoIP.dat"))
return "/usr/local/share/GeoIP/";
if(QFile::exists("/var/lib/GeoIP/GeoIP.dat"))

Loading…
Cancel
Save