Changeset View
Changeset View
Standalone View
Standalone View
ktorrent-5.1.1/plugins/infowidget/peerviewmodel.cpp
Context not available. | |||||
2 | * Copyright (C) 2008 by Joris Guisson and Ivan Vasic * | 2 | * Copyright (C) 2008 by Joris Guisson and Ivan Vasic * | ||
---|---|---|---|---|---|
3 | * joris.guisson@gmail.com * | 3 | * joris.guisson@gmail.com * | ||
4 | * ivasic@gmail.com * | 4 | * ivasic@gmail.com * | ||
5 | * Copyright (C) 2019 by Bernhard "Bero" Rosenkraenzer <bero@lindev.ch> * | ||||
5 | * * | 6 | * * | ||
6 | * This program is free software; you can redistribute it and/or modify * | 7 | * This program is free software; you can redistribute it and/or modify * | ||
7 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * | ||
Context not available. | |||||
59 | 60 | | |||
60 | if (geo_ip) | 61 | if (geo_ip) | ||
61 | { | 62 | { | ||
62 | int country_id = geo_ip->findCountry(stats.ip_address); | 63 | country = geo_ip->findCountry(stats.ip_address); | ||
63 | if (country_id > 0) | 64 | flag = flagDB.getFlag(geo_ip->countryCode(stats.ip_address).toLower()); | ||
64 | { | | |||
65 | country = geo_ip->countryName(country_id); | | |||
66 | flag = flagDB.getFlag(geo_ip->countryCode(country_id)); | | |||
67 | } | | |||
68 | } | 65 | } | ||
69 | } | 66 | } | ||
70 | 67 | | |||
Context not available. |