--- plugins/infowidget/peerview.cpp 2008/02/19 10:53:21 1.1 +++ plugins/infowidget/peerview.cpp 2008/02/19 10:54:10 @@ -45,7 +45,7 @@ static bool icons_loaded = false; static GeoIP* geo_ip = 0; static FlagDB flagDB(22, 18); - static bool geoip_db_exists = true; + static bool geoip_db_exists = false; static QString geoip_data_file; PeerViewItem::PeerViewItem(PeerView* pv,PeerInterface* peer) : QTreeWidgetItem(pv,QTreeWidgetItem::UserType),peer(peer) @@ -57,10 +57,9 @@ icons_loaded = true; flagDB.addFlagSource("data", QString("ktorrent/%1.png")); flagDB.addFlagSource("locale", QString("l10n/%1/flag.png")); -#ifdef USE_SYSTEM_GEOIP +#if 0 geo_ip = GeoIP_open_type(GEOIP_COUNTRY_EDITION, GEOIP_STANDARD); geoip_db_exists = (geo_ip != NULL); -#else geoip_db_exists = !KStandardDirs::locate("data", "ktorrent/geoip.dat").isNull(); if(geoip_db_exists) { --- plugins/infowidget/CMakeLists.txt 2008/02/19 10:52:14 1.1 +++ plugins/infowidget/CMakeLists.txt 2008/02/19 10:55:36 @@ -25,8 +25,6 @@ set(geoip_src GeoIP.c) endif(WITH_SYSTEM_GEOIP) -add_subdirectory(geoip) - set(ktinfowidgetplugin_SRC infowidgetplugin.cpp iwprefpage.cpp