mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:30:38 +00:00
Avoid annoying messages on first system startup about empty map table.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27713 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6b2465b650
commit
0a03a0999e
2 changed files with 8 additions and 1 deletions
|
@ -5336,5 +5336,7 @@ NSArray* GSAllWindows(void)
|
|||
|
||||
NSWindow* GSWindowWithNumber(int num)
|
||||
{
|
||||
return (NSWindow*)NSMapGet(windowmaps, (void*)(intptr_t)num);
|
||||
if (windowmaps)
|
||||
return (NSWindow*)NSMapGet(windowmaps, (void*)(intptr_t)num);
|
||||
return nil;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue