From 2e8f50b709da976dea796c3857460af1940b3c98 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 29 Jan 2010 19:05:12 +0000 Subject: [PATCH] Fix compilation error when geoip database is embedded --- Changelog | 1 + src/geoip.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 5ff4b9c92..9f1e29622 100644 --- a/Changelog +++ b/Changelog @@ -2,6 +2,7 @@ - BUGFIX: Fix "Append .!qB extension to complete files" (libtorrent v0.15) - BUGFIX: Make sure bandwidth limiting dialogs are centered on screen - BUGFIX: Added support for HTTP redirection + - BUGFIX: Fix compilation error when geoip database is embedded * Sun Jan 24 2010 - Christophe Dumez - v2.1.2 - FEATURE: Added back file prioritizing in a torrent diff --git a/src/geoip.h b/src/geoip.h index 00e143ba7..1f94c75d3 100644 --- a/src/geoip.h +++ b/src/geoip.h @@ -46,7 +46,7 @@ protected: static QString geoipFolder(bool embedded=false) { if(embedded) return ":/geoip/"; - return misc::qBittorrentPath()+"geoip"+QDir::separator(); + return misc::QDesktopServicesDataLocation()+"geoip"+QDir::separator(); #else static QString geoipFolder(bool) { if(QFile::exists("/usr/local/share/GeoIP/GeoIP.dat"))