diff options
Diffstat (limited to 'macosx/PictureController.mm')
-rw-r--r-- | macosx/PictureController.mm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm index a8ae974f8..c274c196c 100644 --- a/macosx/PictureController.mm +++ b/macosx/PictureController.mm @@ -346,7 +346,8 @@ static int GetAlignedSize( int size ) - (IBAction) ClosePanel: (id) sender { - [NSApp stopModal]; + [NSApp endSheet: fPicturePanel]; + [fPicturePanel orderOut: self]; } - (BOOL) autoCrop @@ -399,9 +400,6 @@ static int GetAlignedSize( int size ) [NSApp beginSheet: fPicturePanel modalForWindow: fWindow modalDelegate: NULL didEndSelector: NULL contextInfo: NULL]; - [NSApp runModalForWindow: fPicturePanel]; - [NSApp endSheet: fPicturePanel]; - [fPicturePanel orderOut: self]; } - (BOOL) loadMyNibFile |