Commit 5c165066 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed corner case, which could lead to an empty main window in case...

macosx: fixed corner case, which could lead to an empty main window in case the video output closes prematurely
parent 9c803bc0
...@@ -727,7 +727,7 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -727,7 +727,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
if( b_nativeFullscreenMode && b_fullscreen && b_activeVideo && sender != nil ) if( b_nativeFullscreenMode && b_fullscreen && b_activeVideo && sender != nil )
return; return;
if (b_dropzone_active && !b_activeVideo && ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask) != 0) if (b_dropzone_active && ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask) != 0)
{ {
b_dropzone_active = NO; b_dropzone_active = NO;
[self hideDropZone]; [self hideDropZone];
...@@ -1148,6 +1148,7 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1148,6 +1148,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (void)hideDropZone - (void)hideDropZone
{ {
b_dropzone_active = NO;
[o_dropzone_view removeFromSuperview]; [o_dropzone_view removeFromSuperview];
[[o_playlist_table animator] setHidden: NO]; [[o_playlist_table animator] setHidden: NO];
} }
......
...@@ -1741,7 +1741,7 @@ unsigned int CocoaKeyToVLC( unichar i_key ) ...@@ -1741,7 +1741,7 @@ unsigned int CocoaKeyToVLC( unichar i_key )
b_active_videoplayback = b_value; b_active_videoplayback = b_value;
if( o_mainwindow ) if( o_mainwindow )
{ {
[o_mainwindow performSelectorOnMainThread:@selector(setVideoplayEnabled) withObject:nil waitUntilDone:NO]; [o_mainwindow performSelectorOnMainThread:@selector(setVideoplayEnabled) withObject:nil waitUntilDone:YES];
[o_mainwindow performSelectorOnMainThread:@selector(togglePlaylist:) withObject:nil waitUntilDone:NO]; [o_mainwindow performSelectorOnMainThread:@selector(togglePlaylist:) withObject:nil waitUntilDone:NO];
} }
} }
......
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