Don't show unsaveable options in the preferences
authorChristophe Mutricy <xtophe@videolan.org>
Fri, 28 Sep 2007 18:59:17 +0000 (18:59 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Fri, 28 Sep 2007 18:59:17 +0000 (18:59 +0000)
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/wxwidgets/dialogs/preferences_widgets.cpp

index b03a010..bf28940 100644 (file)
@@ -74,7 +74,7 @@ ConfigControl *ConfigControl::createControl( vlc_object_t *p_this,
                                              QGridLayout *l, int &line )
 {
     ConfigControl *p_control = NULL;
-    if( p_item->psz_current ) return NULL;
+    if( p_item->psz_current || p_item->b_unsaveable ) return NULL;
 
     switch( p_item->i_type )
     {
index 22a6908..3910e10 100644 (file)
@@ -39,7 +39,7 @@ ConfigControl *CreateConfigControl( vlc_object_t *p_this,
     ConfigControl *p_control = NULL;
 
     /*Skip deprecated options */
-    if( p_item->psz_current )
+    if( p_item->psz_current || p_item->b_unsaveable )
     {
         return NULL;
     }