diff --git a/ChangeLog b/ChangeLog index db02ec76d..5eb962c06 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-01-20 Wolfgang Lux + + * Source/NSColorList.m (+availableColorLists): Make sure the + system colors are set up properly before computing the available + color lists. Fixes an issue where the returned list would either + be empty or contain two instances of the system color list. + 2011-01-20 Richard Frith-Macdonald * Source/NSWorkspace.m: check on-disk cache at regular intervals ... @@ -61,7 +68,7 @@ 2011-01-15 Wolfgang Lux - * Source/NSColorWell.m (-activate:): Deactivate an activate color + * Source/NSColorWell.m (-activate:): Deactivate an active color well when the user closes the color panel. 2011-01-15 Wolfgang Lux diff --git a/Source/NSColorList.m b/Source/NSColorList.m index a89c9b652..b24848883 100644 --- a/Source/NSColorList.m +++ b/Source/NSColorList.m @@ -99,6 +99,7 @@ static NSColorList *themeColorList = nil; // Serialize access to color list [_colorListLock lock]; + [NSColor whiteColor]; // NB This ensures that the System color list is defined [NSColorList _loadAvailableColorLists: nil]; a = [NSArray arrayWithArray: _availableColorLists]; [_colorListLock unlock];