mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Fix compilation error when geoip database is embedded
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
- BUGFIX: Fix "Append .!qB extension to complete files" (libtorrent v0.15)
|
- BUGFIX: Fix "Append .!qB extension to complete files" (libtorrent v0.15)
|
||||||
- BUGFIX: Make sure bandwidth limiting dialogs are centered on screen
|
- BUGFIX: Make sure bandwidth limiting dialogs are centered on screen
|
||||||
- BUGFIX: Added support for HTTP redirection
|
- BUGFIX: Added support for HTTP redirection
|
||||||
|
- BUGFIX: Fix compilation error when geoip database is embedded
|
||||||
|
|
||||||
* Sun Jan 24 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.1.2
|
* Sun Jan 24 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.1.2
|
||||||
- FEATURE: Added back file prioritizing in a torrent
|
- FEATURE: Added back file prioritizing in a torrent
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ protected:
|
|||||||
static QString geoipFolder(bool embedded=false) {
|
static QString geoipFolder(bool embedded=false) {
|
||||||
if(embedded)
|
if(embedded)
|
||||||
return ":/geoip/";
|
return ":/geoip/";
|
||||||
return misc::qBittorrentPath()+"geoip"+QDir::separator();
|
return misc::QDesktopServicesDataLocation()+"geoip"+QDir::separator();
|
||||||
#else
|
#else
|
||||||
static QString geoipFolder(bool) {
|
static QString geoipFolder(bool) {
|
||||||
if(QFile::exists("/usr/local/share/GeoIP/GeoIP.dat"))
|
if(QFile::exists("/usr/local/share/GeoIP/GeoIP.dat"))
|
||||||
|
|||||||
Reference in New Issue
Block a user