From: Jean-Baptiste Kempf Date: Fri, 18 Jan 2008 07:48:07 +0000 (+0000) Subject: Qt4 - Preferences: checkboxes in ModuleList are shown if saved ;) Spotted by atmo. X-Git-Tag: 0.9.0-test0~3391 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=db4506a7ce6cd2c2c33131b1fad725d16807bcdc;p=vlc Qt4 - Preferences: checkboxes in ModuleList are shown if saved ;) Spotted by atmo. --- diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp index 0595ff559d..d918c5e98d 100644 --- a/modules/gui/qt4/components/preferences_widgets.cpp +++ b/modules/gui/qt4/components/preferences_widgets.cpp @@ -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 ); \ }