[vlc-devel] commit: osx-wizard: make sure to only re-select encap formats that are actually available *coughcough* ( Felix Paul Kühne )

git version control git at videolan.org
Mon Dec 29 00:28:42 CET 2008


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Dec 29 00:28:37 2008 +0100| [eab8710bcd01331f1442b474f79e131c8ae4a2e9] | committer: Felix Paul Kühne 

osx-wizard: make sure to only re-select encap formats that are actually available *coughcough*

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

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

diff --git a/modules/gui/macosx/wizard.m b/modules/gui/macosx/wizard.m
index f0f3cb0..4e98963 100644
--- a/modules/gui/macosx/wizard.m
+++ b/modules/gui/macosx/wizard.m
@@ -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];




More information about the vlc-devel mailing list