mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Raise an exception instead of crashing (at least on Windows) when we fail to obtain a window from the back end.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29284 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
205498d887
commit
6b20840967
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-01-14 Doug Simons <doug.simons@testplant.com>
|
||||
|
||||
* Source/NSWindow.m (-_initBackendWindow): Raise an
|
||||
exception instead of crashing (at least on Windows) when we
|
||||
fail to obtain a window from the back end.
|
||||
|
||||
2010-01-14 07:08-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSApplication.m: For hide: perform miniaturizeAll:
|
||||
|
|
|
@ -869,6 +869,8 @@ many times.
|
|||
: _backingType
|
||||
: _styleMask
|
||||
: [_screen screenNumber]];
|
||||
if (_windowNum == 0)
|
||||
[NSException raise:@"No Window" format:@"Failed to obtain window from the back end"];
|
||||
[srv setwindowlevel: [self level] : _windowNum];
|
||||
if (_parent != nil)
|
||||
[srv setParentWindow: [_parent windowNumber]
|
||||
|
|
Loading…
Reference in a new issue