vlc | branch: master | Marvin Scholz <epira...@gmail.com> | Sat Aug 18 04:18:55 2018 +0200| [f023fd67b57c12f2f3418011b73e026509c26bf6] | committer: Marvin Scholz
macosx: Do not crash on empty selection > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f023fd67b57c12f2f3418011b73e026509c26bf6 --- modules/gui/macosx/VLCMainWindow.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/gui/macosx/VLCMainWindow.m b/modules/gui/macosx/VLCMainWindow.m index fb60af8600..35385350a4 100644 --- a/modules/gui/macosx/VLCMainWindow.m +++ b/modules/gui/macosx/VLCMainWindow.m @@ -984,6 +984,10 @@ static const float f_min_window_height = 307.; playlist_t * p_playlist = pl_Get(getIntf()); NSIndexSet *selectedIndexes = [_sidebarView selectedRowIndexes]; + + if (selectedIndexes.count == 0) + return; + id item = [_sidebarView itemAtRow:[selectedIndexes firstIndex]]; //Set the label text to represent the new selection _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits