mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Eliminate NSApplication from being added to topLevelObjects
This commit is contained in:
parent
d0c1d7f403
commit
c6aa964149
1 changed files with 3 additions and 2 deletions
|
@ -123,12 +123,13 @@
|
|||
[co setRealObject: owner];
|
||||
}
|
||||
}
|
||||
else if ([obj class] == [NSCustomObject class] && ownerSetForOldXib == NO)
|
||||
else if ([obj isKindOfClass: [NSCustomObject class]] &&
|
||||
ownerSetForOldXib == NO)
|
||||
{
|
||||
[obj setRealObject: owner]; // set on first object in list...
|
||||
ownerSetForOldXib = YES;
|
||||
}
|
||||
else
|
||||
else if ([obj isKindOfClass: [NSApplication class]] == NO)
|
||||
{
|
||||
[topLevelObjects addObject: obj];
|
||||
|
||||
|
|
Loading…
Reference in a new issue