Fix for bug 12825 - omit icon window from returned windows list

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40385 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2017-03-12 01:39:13 +00:00
parent b3ac8d4ac6
commit 246b0f75fa

View file

@ -2763,7 +2763,10 @@ image.</p><p>See Also: -applicationIconImage</p>
*/
- (NSArray*) windows
{
return GSAllWindows();
// Omit the app icon window
NSMutableArray *windows = AUTORELEASE([GSAllWindows() mutableCopy]);
[windows removeObject: [self iconWindow]];
return windows;
}
/**