Commit 78e2ea52 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

Mac OS X gui: Fix #756 (VLC don't go open if you click on the dock icon)

parent ef066dad
...@@ -701,6 +701,15 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -701,6 +701,15 @@ static VLCMain *_o_sharedMainInstance = nil;
return( o_str ); return( o_str );
} }
/* When user click in the Dock icon our double click in the finder */
- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)hasVisibleWindows
{
if (!hasVisibleWindows)
[o_window makeKeyAndOrderFront:self];
return YES;
}
/* Listen to the remote in exclusive mode, only when VLC is the active /* Listen to the remote in exclusive mode, only when VLC is the active
application */ application */
- (void)applicationDidBecomeActive:(NSNotification *)aNotification - (void)applicationDidBecomeActive:(NSNotification *)aNotification
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment