mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Bugfix for setting objects in persistent domains.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2959 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b8fca3dc09
commit
1dd5561172
1 changed files with 13 additions and 2 deletions
|
@ -401,8 +401,19 @@ static NSMutableString *processName = nil;
|
||||||
{
|
{
|
||||||
if (value && defaultName && ([defaultName length] > 0))
|
if (value && defaultName && ([defaultName length] > 0))
|
||||||
{
|
{
|
||||||
[[persDomains objectForKey:processName]
|
id obj = [persDomains objectForKey: processName];
|
||||||
setObject:value forKey:defaultName];
|
NSMutableDictionary *dict;
|
||||||
|
|
||||||
|
if ([obj isKindOfClass: [NSMutableDictionary class]] == YES)
|
||||||
|
{
|
||||||
|
dict = obj;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dict = [obj mutableCopy];
|
||||||
|
[persDomains setObject: dict forKey: processName];
|
||||||
|
}
|
||||||
|
[dict setObject:value forKey:defaultName];
|
||||||
[self __changePersistentDomain:processName];
|
[self __changePersistentDomain:processName];
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue