From 3c0a356bd3ae911aae40100ae5f5cc75a622a239 Mon Sep 17 00:00:00 2001 From: dynaflash Date: Mon, 16 Aug 2010 14:48:19 +0000 Subject: [PATCH] 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://localhost/HandBrake/trunk@3480 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/Controller.m | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 672d4403..47a1aca4 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 { -- 2.11.0