]> git.sesse.net Git - vlc/commitdiff
Don't display in OS X either. Needs to be checked
authorClément Stenac <zorglub@videolan.org>
Sun, 27 Nov 2005 10:44:00 +0000 (10:44 +0000)
committerClément Stenac <zorglub@videolan.org>
Sun, 27 Nov 2005 10:44:00 +0000 (10:44 +0000)
modules/gui/macosx/prefs.m

index 3607a01282b0accb8aab9d695de1313996c73978..034368a19541ff8a093014560d6e98e006c590fd 100644 (file)
@@ -312,6 +312,7 @@ static VLCTreeItem *o_root_item = nil;
                     switch( p_item->i_type )
                     {
                     case CONFIG_CATEGORY:
+                       if( p_item->i_value == -1 ) break;
                         o_child_name = [[VLCMain sharedInstance]
                             localizedString: config_CategoryNameGet( p_item->i_value ) ];
                         o_child_title = o_child_name;
@@ -329,6 +330,7 @@ static VLCTreeItem *o_root_item = nil;
                             whithCategory: p_item - p_module->p_config]];
                         break;
                     case CONFIG_SUBCATEGORY:
+                       if( p_item->i_value == -1 ) break;
                         o_child_name = [[VLCMain sharedInstance]
                             localizedString: config_CategoryNameGet( p_item->i_value ) ];
                         o_child_title = o_child_name;