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 f0f3cb0..4e98963 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];