[vlc-commits] macosx: fixed seldom crash when collapsing stuff in the sidebar ( close #6150)

Felix Paul Kühne git at videolan.org
Tue Feb 21 17:34:44 CET 2012


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Feb 21 17:31:00 2012 +0100| [942b3851a75c52011671ff6a6ae1c0a4dd765822] | committer: Felix Paul Kühne

macosx: fixed seldom crash when collapsing stuff in the sidebar (close #6150)
(cherry picked from commit 16932fa4caa9bab8ff56e694a9a296d1a3b05bd6)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=942b3851a75c52011671ff6a6ae1c0a4dd765822
---

 modules/gui/macosx/MainWindow.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 2b02ded..a2807a7 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -2023,7 +2023,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
     id item = [o_sidebar_view itemAtRow:[selectedIndexes firstIndex]];
 
 	//Set the label text to represent the new selection
-    if ([item sdtype] > -1)
+    if ([item sdtype] > -1 && [[item identifier] length] > 0)
     {
         BOOL sd_loaded = playlist_IsServicesDiscoveryLoaded( p_playlist, [[item identifier] UTF8String] );
         if (!sd_loaded)



More information about the vlc-commits mailing list