mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
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.
This commit is contained in:
parent
fc342fa758
commit
59cbccfe52
1 changed files with 0 additions and 17 deletions
|
|
@ -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<QString, QTimeZone> 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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue