on xenial help sign in
Sort default cities by name, not population
8134b4bMichael Terry
plugins/Wizard/timezonemodel.cpp+1−1
@@ -195,7 +195,7 @@ QString TimeZoneLocationModel::country() const
195
195
196static bool citycmp(GeonamesCity *a, GeonamesCity *b)
196static bool citycmp(GeonamesCity *a, GeonamesCity *b)
197{
197{
198− return geonames_city_get_population(b) < geonames_city_get_population(a);
198+ return QString(geonames_city_get_name(a)).localeAwareCompare(geonames_city_get_name(b)) < 0;
199}
199}
200
200
201void TimeZoneLocationModel::setCountry(const QString &country)
201void TimeZoneLocationModel::setCountry(const QString &country)