Fix compilation error when geoip database is embedded

This commit is contained in:
Christophe Dumez
2010-01-29 19:05:12 +00:00
parent fdccf9cc1c
commit 2e8f50b709
2 changed files with 2 additions and 1 deletions

View File

@@ -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"))