mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 20:47:38 +00:00
Fix for bug #24785.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27195 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a06a8ceb9e
commit
03d2fc6b14
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2008-12-02 19:45-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSApplication.m: Fix for bug #24785.
|
||||
|
||||
2008-12-02 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSBrowser.m: fix uninitialised variable.
|
||||
|
|
|
@ -3230,8 +3230,14 @@ struct _DelegateWrapper
|
|||
* and BOOL are integers, and NSTerminateNow is defined as YES
|
||||
* and NSTerminateCancel as NO.
|
||||
*/
|
||||
termination = (NSApplicationTerminateReply)
|
||||
[_delegate applicationShouldTerminate: self];
|
||||
|
||||
/* We need to do double coercion here since some version of the
|
||||
* compiler will get confused due to the differences in how
|
||||
* enum is implemented on various platforms. This ensures
|
||||
* that the return type is handled properly in all cases.
|
||||
*/
|
||||
termination = (NSApplicationTerminateReply)(BOOL)
|
||||
[_delegate applicationShouldTerminate: self];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue