From: Christophe Mutricy Date: Fri, 28 Sep 2007 18:59:17 +0000 (+0000) Subject: Don't show unsaveable options in the preferences X-Git-Tag: 0.9.0-test0~5340 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=df28e87a678b99e02df7ec060fe0b2b97275349b;p=vlc Don't show unsaveable options in the preferences --- diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp index b03a010a96..bf289406f9 100644 --- a/modules/gui/qt4/components/preferences_widgets.cpp +++ b/modules/gui/qt4/components/preferences_widgets.cpp @@ -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 ) { diff --git a/modules/gui/wxwidgets/dialogs/preferences_widgets.cpp b/modules/gui/wxwidgets/dialogs/preferences_widgets.cpp index 22a69081a9..3910e10fbe 100644 --- a/modules/gui/wxwidgets/dialogs/preferences_widgets.cpp +++ b/modules/gui/wxwidgets/dialogs/preferences_widgets.cpp @@ -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; }