[vlc-commits] macosx: fix typo showing the wrong media source in the wrong tab

Felix Paul Kühne git at videolan.org
Mon Sep 2 11:57:45 CEST 2019


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Fri Aug 30 16:59:34 2019 +0200| [db1d5754cf58ea17288e0cc077d76140f434f9eb] | committer: Felix Paul Kühne

macosx: fix typo showing the wrong media source in the wrong tab

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

 modules/gui/macosx/library/VLCLibraryWindow.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/library/VLCLibraryWindow.m b/modules/gui/macosx/library/VLCLibraryWindow.m
index 7898f54d33..538f04c49f 100644
--- a/modules/gui/macosx/library/VLCLibraryWindow.m
+++ b/modules/gui/macosx/library/VLCLibraryWindow.m
@@ -438,7 +438,7 @@ static int ShowController(vlc_object_t *p_this, const char *psz_variable,
         [_libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[_mediaSourceView(>=572.)]|" options:0 metrics:0 views:dict]];
         [_libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[_mediaSourceView(>=444.)]|" options:0 metrics:0 views:dict]];
     }
-    _mediaSourceDataSource.mediaSourceMode = _segmentedTitleControl.selectedSegment == 3 ? VLCMediaSourceModeLAN : VLCMediaSourceModeInternet;
+    _mediaSourceDataSource.mediaSourceMode = _segmentedTitleControl.selectedSegment == 2 ? VLCMediaSourceModeLAN : VLCMediaSourceModeInternet;
     _librarySortButton.hidden = YES;
     _audioSegmentedControl.hidden = YES;
     [_mediaSourceDataSource reloadViews];



More information about the vlc-commits mailing list