]> git.sesse.net Git - vlc/commitdiff
Qt4 - Preferences: checkboxes in ModuleList are shown if saved ;) Spotted by atmo.
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 18 Jan 2008 07:48:07 +0000 (07:48 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 18 Jan 2008 07:48:07 +0000 (07:48 +0000)
modules/gui/qt4/components/preferences_widgets.cpp

index 0595ff559d2a84b7d00ae8f742a00ca0cb30a040..d918c5e98d4443e423f5f2f78a601a99e6d58c96 100644 (file)
@@ -612,6 +612,9 @@ ModuleListConfigControl::~ModuleListConfigControl()
 \
        cbl->psz_module = strdup( module_GetObjName( p_parser ) ); \
        modules.push_back( cbl ); \
+\
+       if( p_item->value.psz && strstr( p_item->value.psz, cbl->psz_module ) ) \
+            cbl->checkBox->setChecked( true ); \
 }