From c7d038cc260417028aa7570a039a3a6efb9a1811 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 11 May 2022 17:40:47 +0100 Subject: MailSettings: Set window modified state --- Userland/Applications/MailSettings/MailSettingsWidget.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Userland/Applications/MailSettings') diff --git a/Userland/Applications/MailSettings/MailSettingsWidget.cpp b/Userland/Applications/MailSettings/MailSettingsWidget.cpp index b781b721ad..deb1da6393 100644 --- a/Userland/Applications/MailSettings/MailSettingsWidget.cpp +++ b/Userland/Applications/MailSettings/MailSettingsWidget.cpp @@ -46,15 +46,27 @@ MailSettingsWidget::MailSettingsWidget() m_server_inputbox = *find_descendant_of_type_named("server_input"); m_server_inputbox->set_text(Config::read_string("Mail", "Connection", "Server", "")); + m_server_inputbox->on_change = [&]() { + set_modified(true); + }; m_port_combobox = *find_descendant_of_type_named("port_input"); m_port_combobox->set_text(Config::read_string("Mail", "Connection", "Port", "993")); m_port_combobox->set_only_allow_values_from_model(false); m_port_combobox->set_model(*GUI::ItemListModel::create(m_common_ports)); + m_port_combobox->on_change = [&](auto, auto) { + set_modified(true); + }; m_tls_checkbox = *find_descendant_of_type_named("tls_input"); m_tls_checkbox->set_checked(Config::read_bool("Mail", "Connection", "TLS", false)); + m_tls_checkbox->on_checked = [&](auto) { + set_modified(true); + }; m_email_inputbox = *find_descendant_of_type_named("email_input"); m_email_inputbox->set_text(Config::read_string("Mail", "User", "Username", "")); + m_email_inputbox->on_change = [&]() { + set_modified(true); + }; } -- cgit v1.2.3