From 1d028e4cf598262280feb5cae7e3356f18851021 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 23 Mar 2017 15:42:05 -0400 Subject: [PATCH] Expose default value SOGoMailAddOutgoingAddresses Fixes #4064 --- NEWS | 1 + UI/PreferencesUI/UIxJSONPreferences.m | 3 +++ 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index dd9490652..28b052dbf 100644 --- a/NEWS +++ b/NEWS @@ -21,6 +21,7 @@ Bug fixes - [web] SOGoCalendarWeekdays must now be defined before saving preferences - [web] fixed CAS session timeout handling during XHR requests (#1456) - [web] exposed default value of SOGoMailAutoSave (#4053) + - [web] exposed default value of SOGoMailAddOutgoingAddresses (#4064) - [web] fixed handling of contact organizations (#4028) - [web] fixed handling of attachments in mail editor (#4058, #4063) - [web] fixed saving draft outside Mail module (#4071) diff --git a/UI/PreferencesUI/UIxJSONPreferences.m b/UI/PreferencesUI/UIxJSONPreferences.m index ae26ff895..fa3f75ac3 100644 --- a/UI/PreferencesUI/UIxJSONPreferences.m +++ b/UI/PreferencesUI/UIxJSONPreferences.m @@ -259,6 +259,9 @@ static SoProduct *preferencesProduct = nil; [defaults setContactsCategories: categoryLabels]; } + if (![[defaults source] objectForKey: @"SOGoMailAddOutgoingAddresses"]) + [[defaults source] setObject: [NSNumber numberWithBool: [defaults mailAddOutgoingAddresses]] forKey: @"SOGoMailAddOutgoingAddresses"]; + // // Default Mail preferences //