summaryrefslogtreecommitdiffstats
path: root/macosx/PictureController.mm
diff options
context:
space:
mode:
authorritsuka <[email protected]>2007-09-08 21:58:49 +0000
committerritsuka <[email protected]>2007-09-08 21:58:49 +0000
commit09a6c03875d3e89fd2d86663334842c8d7605028 (patch)
treeaa00975279b6156050dc235449e5e2f098d6e639 /macosx/PictureController.mm
parent23a408168d6460600e392987cfec09a458761645 (diff)
MacGui:
- Better menu item validation - Sheets no long disable every existing menu item - Added a check for preset name length when adding a new preset git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@939 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/PictureController.mm')
-rw-r--r--macosx/PictureController.mm6
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