mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Fix attempt to remove nil object from array
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40402 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
acd59c14bd
commit
b086ff6ebe
1 changed files with 7 additions and 3 deletions
|
@ -2764,9 +2764,13 @@ image.</p><p>See Also: -applicationIconImage</p>
|
|||
- (NSArray*) windows
|
||||
{
|
||||
// Omit the app icon window
|
||||
NSMutableArray *windows = AUTORELEASE([GSAllWindows() mutableCopy]);
|
||||
[windows removeObject: [self iconWindow]];
|
||||
return windows;
|
||||
if ([self iconWindow])
|
||||
{
|
||||
NSMutableArray *windows = AUTORELEASE([GSAllWindows() mutableCopy]);
|
||||
[windows removeObject: [self iconWindow]];
|
||||
return windows;
|
||||
}
|
||||
return GSAllWindows();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue