--- ./plugins/infowidget/geoipmanager.cpp.orig 2021-08-15 00:22:42.578507015 -0500 +++ ./plugins/infowidget/geoipmanager.cpp 2021-08-15 00:26:18.456513207 -0500 @@ -30,7 +30,7 @@ #ifdef USE_SYSTEM_GEOIP geo_ip = GeoIP_open_type(GEOIP_COUNTRY_EDITION, GEOIP_STANDARD); #else - geoip_data_file = QStandardPaths::locate(QStandardPaths::AppDataLocation, QStringLiteral("geoip.dat")); + geoip_data_file = QStringLiteral("/usr/share/apps/ktorrent/GeoIP/geoip.dat"); if (geoip_data_file.isEmpty()) geoip_data_file = QStandardPaths::locate(QStandardPaths::AppDataLocation, QStringLiteral("GeoIP.dat")); @@ -41,11 +41,6 @@ if (geo_ip) { QFileInfo fi(geoip_data_file); QDateTime now = QDateTime::currentDateTime(); - if (fi.lastModified().daysTo(now) >= 30) { - // if the last time the geoip file was modified, was more then - // 30 days ago, redownload it - downloadDataBase(); - } } } #endif @@ -89,12 +84,6 @@ void GeoIPManager::downloadDataBase() { -#ifndef USE_SYSTEM_GEOIP - Out(SYS_INW | LOG_NOTICE) << "Downloading GeoIP database: " << geoip_url << endl; - download_destination = kt::DataDir(CreateIfNotExists) + geoip_url.fileName(); - KIO::CopyJob *job = KIO::copy(geoip_url, QUrl::fromLocalFile(download_destination), KIO::Overwrite | KIO::HideProgressInfo); - connect(job, &KIO::CopyJob::result, this, &GeoIPManager::databaseDownloadFinished); -#endif } void GeoIPManager::databaseDownloadFinished(KJob *job)