From 59cbccfe52733cd82fbb4e2828ac60371ce39bc8 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Wed, 9 Oct 2024 19:43:48 -0700 Subject: [PATCH] kcms/time: Don't insert "local" option into timezones dropdown It isn't selected by default, and also causes the time to disappear when selected. --- kcms/time/timezonemodel.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/kcms/time/timezonemodel.cpp b/kcms/time/timezonemodel.cpp index 0d4d18b7..90d1cf33 100644 --- a/kcms/time/timezonemodel.cpp +++ b/kcms/time/timezonemodel.cpp @@ -118,18 +118,6 @@ void TimeZoneModel::update() beginResetModel(); m_data.clear(); - QTimeZone localZone = QTimeZone(QTimeZone::systemTimeZoneId()); - const QStringList data = QString::fromUtf8(localZone.id()).split(QLatin1Char('/')); - - TimeZoneData local; - local.id = "Local"; - local.region = i18nc("This means \"Local Timezone\"", "Local"); - local.city = m_timezonesI18n->i18nCity(data.last()); - local.comment = i18n("Your system time zone"); - local.checked = false; - - m_data.append(local); - QStringList cities; QHash zonesByCity; @@ -152,11 +140,6 @@ void TimeZoneModel::update() const QTimeZone timeZone = zonesByCity.value(key); QString comment = timeZone.comment(); - // FIXME - this was in the old code but makes no sense - // if (!comment.isEmpty()) { - // comment = i18n(comment.toUtf8()); - // } - const QStringList cityCountryContinent = key.split(QLatin1Char('|')); TimeZoneData newData;