File no-geoip-db.diff of Package ktorrent

diff -u -r ktorrent-2.1beta1.orig/plugins/infowidget/Makefile.am ktorrent-2.1beta1/plugins/infowidget/Makefile.am
--- ktorrent-2.1beta1.orig/plugins/infowidget/Makefile.am	2006-11-25 13:49:50.000000000 +0100
+++ ktorrent-2.1beta1/plugins/infowidget/Makefile.am	2006-11-25 14:13:45.000000000 +0100
@@ -27,8 +27,4 @@
 kde_services_DATA = ktinfowidgetplugin.desktop
 
 kde_kcfg_DATA = ktinfowidgetplugin.kcfg
-
-ktdatadir = $(kde_datadir)/ktorrent/geoip
-
-SUBDIRS = geoip
 KDE_CXXFLAGS = $(USE_EXCEPTIONS) $(USE_RTTI)
diff -u -r ktorrent-2.1beta1.orig/plugins/infowidget/peerview.cpp ktorrent-2.1beta1/plugins/infowidget/peerview.cpp
--- ktorrent-2.1beta1.orig/plugins/infowidget/peerview.cpp	2006-11-25 13:49:50.000000000 +0100
+++ ktorrent-2.1beta1/plugins/infowidget/peerview.cpp	2006-11-25 14:13:31.000000000 +0100
@@ -45,7 +45,7 @@
 	static QPixmap no_pix;
 	static QPixmap lock_pix;
 	static bool yes_no_pix_loaded = false;
-	static bool geoip_db_exists = true;
+	static bool geoip_db_exists = false;
 	
 		
 	PeerViewItem::PeerViewItem(PeerView* pv,kt::PeerInterface* peer) : KListViewItem(pv),peer(peer)
@@ -56,9 +56,6 @@
 			yes_pix = iload->loadIcon("button_ok",KIcon::Small);
 			no_pix = iload->loadIcon("button_cancel",KIcon::Small);
 			lock_pix = iload->loadIcon("ktencrypted",KIcon::Small);
-			geoip_db_exists = !locate("data", "ktorrent/geoip/geoip.dat").isNull(); 
-			if(!geoip_db_exists)
-				geoip_db_exists = !locate("data", "ktorrent/geoip/GeoIP.dat").isNull();
 			yes_no_pix_loaded = true;
 		}
 		
openSUSE Build Service is sponsored by