]> git.sesse.net Git - vlc/commitdiff
macosx: fix podcast view interfering with dropzone
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sat, 18 Oct 2014 09:21:51 +0000 (11:21 +0200)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Sat, 18 Oct 2014 09:21:51 +0000 (11:21 +0200)
modules/gui/macosx/MainWindow.m

index 6b932b9c6aea009ac99fbfd9d42ae89eb2edf7e4..198efd0b76ec52112f7ce9a54179e8649980568a 100644 (file)
@@ -1145,6 +1145,12 @@ static VLCMainWindow *_o_sharedInstance = nil;
         [[[VLCMain sharedInstance] playlist] setPlaylistRoot: pl_item];
     }
 
+    // Note the order: first hide the podcast controls, then show the drop zone
+    if ([[item identifier] isEqualToString:@"podcast{longname=\"Podcasts\"}"])
+        [self showPodcastControls];
+    else
+        [self hidePodcastControls];
+
     PL_LOCK;
     if ([[[VLCMain sharedInstance] playlist] currentPlaylistRoot] != p_playlist->p_local_category || p_playlist->p_local_category->i_children > 0)
         [self hideDropZone];
@@ -1152,11 +1158,6 @@ static VLCMainWindow *_o_sharedInstance = nil;
         [self showDropZone];
     PL_UNLOCK;
 
-    if ([[item identifier] isEqualToString:@"podcast{longname=\"Podcasts\"}"])
-        [self showPodcastControls];
-    else
-        [self hidePodcastControls];
-
     [[NSNotificationCenter defaultCenter] postNotificationName: @"VLCMediaKeySupportSettingChanged"
                                                         object: nil
                                                       userInfo: nil];