Monotone-Parent: dfc37996359ac82f92b30c492175c516f038aa35

Monotone-Revision: 9dddcc8446007077ebc41dfa9cec3972bcc03cc5

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-09-17T14:28:50
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2009-09-17 14:28:50 +00:00
parent fb0edf7b5b
commit 7aec71e853
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2009-09-17 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/PreferencesUI/UIxPreferences.m (-userComposeMessagesType):
return a default value of @"text" if the default compose type has
never been changed by the user. Otherwise, saving the preferences
will never enable the window to be closed since the new value will
always be different from nil.
2009-09-17 Cyril Robert <crobert@inverse.ca>
* UI/Contacts/UIxListEditor.m: Renamed "name" to "listName"

View File

@ -627,7 +627,14 @@ static BOOL defaultShowSubscribedFoldersOnly = NO;
- (NSString *) userComposeMessagesType
{
return [userDefaults stringForKey: @"ComposeMessagesType"];
NSString *userComposeMessagesType;
userComposeMessagesType
= [userDefaults stringForKey: @"ComposeMessagesType"];
if (!userComposeMessagesType)
userComposeMessagesType = @"text";
return userComposeMessagesType;
}
- (void) setUserComposeMessagesType: (NSString *) newType