mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 10:55:25 +00:00
Monotone-Parent: b0d54fb9b69827b08042c1be219b87648b1a9df2
Monotone-Revision: 4a94a09737a35d0774170a9dea9d614507de203a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-12-01T16:54:24 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
|
||||
2009-12-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Scheduler/UIxComponentEditor.m (-categoryList): the returned
|
||||
list is now sorted, except if the category of the event was not
|
||||
always present in the list (kept on top).
|
||||
|
||||
* UI/PreferencesUI/UIxPreferences.m (-categoryList): simplified
|
||||
method by returning only the array of defined categories from the
|
||||
user defaults or those defined in the Localizable.strings and sort
|
||||
|
||||
@@ -840,7 +840,9 @@ iRANGE(2);
|
||||
= [NSMutableArray arrayWithCapacity: [categoryLabels count] + 1];
|
||||
if ([category length] && ![categoryLabels containsObject: category])
|
||||
[categoryList addObject: category];
|
||||
[categoryList addObjectsFromArray: categoryLabels];
|
||||
[categoryList addObjectsFromArray:
|
||||
[categoryLabels sortedArrayUsingSelector:
|
||||
@selector (localizedCaseInsensitiveCompare:)]];
|
||||
|
||||
return categoryList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user