]> git.sesse.net Git - vlc/commitdiff
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 b03a010a9632edf198cd342e02020c71e7d23196..bf289406f99a5af1965be9fa488e2144699a12d9 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 22a69081a94527d51eecd85b6f5d55482b340255..3910e10fbe7a9d62b3bf162bd330736aeca35148 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;
     }