diff options
author | dynaflash <[email protected]> | 2010-08-16 14:48:19 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2010-08-16 14:48:19 +0000 |
commit | 68739d832399fa456be34cdc18ae632213090705 (patch) | |
tree | dd118d60f888d1896f425e6939763c0a7183a3b3 | |
parent | 51c4a7cf0e7107753cb8c9d3ab1d2e0c19b45eca (diff) |
MacGui: Fix dock icon behavior
- patch by KonaB1end ... Thanks!
- Fixes issue where minimized main window would not unminiaturize when the dock icon is clicked.
- Fixes same issue with a closed main window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3480 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | macosx/Controller.m | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m index 672d44030..47a1aca47 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -1982,12 +1982,9 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It - (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag { if( !flag ) { - [fWindow makeKeyAndOrderFront:nil]; - - return YES; + [fWindow makeKeyAndOrderFront:nil]; } - - return NO; + return YES; } - (NSSize) drawerWillResizeContents:(NSDrawer *) drawer toSize:(NSSize) contentSize { |