mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 07:40:47 +00:00
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. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31919 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7b455d80e0
commit
47246f7bb0
2 changed files with 9 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue