diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-05-11 17:37:36 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-05-12 13:10:49 +0200 |
commit | 57bac17b9f9e7e61a047afa65edb0a4df7c961d9 (patch) | |
tree | df18f9bbf270a24748b2eac4fcc1cbbfecedfd09 /Userland/Applications/ClockSettings/TimeZoneSettingsWidget.cpp | |
parent | f27985a02156c5df8e92bc31eb92c6546b3fdfee (diff) | |
download | serenity-57bac17b9f9e7e61a047afa65edb0a4df7c961d9.zip |
ClockSettings: Set window modified state
Diffstat (limited to 'Userland/Applications/ClockSettings/TimeZoneSettingsWidget.cpp')
-rw-r--r-- | Userland/Applications/ClockSettings/TimeZoneSettingsWidget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Applications/ClockSettings/TimeZoneSettingsWidget.cpp b/Userland/Applications/ClockSettings/TimeZoneSettingsWidget.cpp index 6dcfc93fa4..34ac562a4b 100644 --- a/Userland/Applications/ClockSettings/TimeZoneSettingsWidget.cpp +++ b/Userland/Applications/ClockSettings/TimeZoneSettingsWidget.cpp @@ -50,6 +50,9 @@ TimeZoneSettingsWidget::TimeZoneSettingsWidget() m_time_zone_combo_box->set_only_allow_values_from_model(true); m_time_zone_combo_box->set_model(*StringViewListModel::create(time_zones)); m_time_zone_combo_box->set_text(m_time_zone); + m_time_zone_combo_box->on_change = [&](auto, auto) { + set_modified(true); + }; auto time_zone_map_bitmap = Gfx::Bitmap::try_load_from_file("/res/graphics/map.png"sv).release_value_but_fixme_should_propagate_errors(); auto time_zone_rect = time_zone_map_bitmap->rect().shrunken(TIME_ZONE_MAP_NORTHERN_TRIM, 0, TIME_ZONE_MAP_SOUTHERN_TRIM, 0); |