]> git.sesse.net Git - vlc/commitdiff
osx-wizard: make sure to only re-select encap formats that are actually available...
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 28 Dec 2008 23:28:37 +0000 (00:28 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 28 Dec 2008 23:28:37 +0000 (00:28 +0100)
modules/gui/macosx/wizard.m

index f0f3cb09030edd0df5260310c3abab466bd978bd..4e98963997734632f18761b722d73d4e14a5debe 100644 (file)
@@ -1053,7 +1053,8 @@ static VLCWizard *_o_sharedInstance = nil;
         if (anythingEnabled == YES)
         {
             /* re-select the previously chosen item, if available */
-            [o_t5_matrix_encap selectCellWithTag: i_temp];
+            if( [[o_t5_matrix_encap cellWithTag: i_temp] isEnabled] )
+                [o_t5_matrix_encap selectCellWithTag: i_temp];
 
             /* go the encap-tab */
             [o_tab_pageHolder selectTabViewItemAtIndex:4];