* 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:
Gregory John Casamento 2008-09-24 21:25:39 +00:00
parent 4052779063
commit b1aa9b9ebd
2 changed files with 5 additions and 4 deletions

View file

@ -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>
* Source/NSUserDefaults.m: -addSuiteNamed change so that we don't

View file

@ -925,10 +925,7 @@ static BOOL setSharedDefaults = NO; /* Flag to prevent infinite recursion */
if (self == sharedDefaults) invalidatedLanguages = YES;
[_searchList removeObject: aName];
index = [_searchList indexOfObject: processName];
if(index == NSNotFound)
{
index = 0; // NSNotFound, insert at start.
}
index = (index == NSNotFound) ? 0 : (index + 1);
aName = [aName copy];
[_searchList insertObject: aName atIndex: index];
[_lock unlock];