mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 01:31:08 +00:00
* Source/NSUserDefaults.m: Corrected previous change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26871 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4052779063
commit
b1aa9b9ebd
2 changed files with 5 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2008-09-24 17:26-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
* Source/NSUserDefaults.m: Corrected previous change.
|
||||||
|
|
||||||
2008-09-24 08:25-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
2008-09-24 08:25-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* Source/NSUserDefaults.m: -addSuiteNamed change so that we don't
|
* Source/NSUserDefaults.m: -addSuiteNamed change so that we don't
|
||||||
|
|
|
@ -925,10 +925,7 @@ static BOOL setSharedDefaults = NO; /* Flag to prevent infinite recursion */
|
||||||
if (self == sharedDefaults) invalidatedLanguages = YES;
|
if (self == sharedDefaults) invalidatedLanguages = YES;
|
||||||
[_searchList removeObject: aName];
|
[_searchList removeObject: aName];
|
||||||
index = [_searchList indexOfObject: processName];
|
index = [_searchList indexOfObject: processName];
|
||||||
if(index == NSNotFound)
|
index = (index == NSNotFound) ? 0 : (index + 1);
|
||||||
{
|
|
||||||
index = 0; // NSNotFound, insert at start.
|
|
||||||
}
|
|
||||||
aName = [aName copy];
|
aName = [aName copy];
|
||||||
[_searchList insertObject: aName atIndex: index];
|
[_searchList insertObject: aName atIndex: index];
|
||||||
[_lock unlock];
|
[_lock unlock];
|
||||||
|
|
Loading…
Reference in a new issue