case CONFIG_ITEM_MODULE_LIST_CAT:
p_control = new ModuleListConfigControl( p_this, p_item, parent, true,
l, line );
+ /* Special Hack for a bug in video-filter */
+ if( qobject_cast<ModuleListConfigControl *>( p_control )->groupBox == NULL )
+ return NULL;
break;
case CONFIG_ITEM_STRING:
if( !p_item->i_list )
VStringConfigControl( _p_this, _p_item, _parent )
{
groupBox = NULL;
+ /* Special Hack */
if( !p_item->psz_text ) return;
groupBox = new QGroupBox ( qtr(p_item->psz_text) );
}
vlc_list_release( p_list );
text->setToolTip( formatTooltip(qtr(p_item->psz_longtext)) );
- if( groupBox )
- groupBox->setToolTip( formatTooltip(qtr(p_item->psz_longtext)) );
+ assert( groupBox );
+ groupBox->setToolTip( formatTooltip(qtr(p_item->psz_longtext)) );
}
#undef CHECKBOX_LISTS
QString ModuleListConfigControl::getValue()
{
+ assert( text );
return text->text();
}
class ModuleListConfigControl : public VStringConfigControl
{
Q_OBJECT;
+ friend class ConfigControl;
public:
ModuleListConfigControl( vlc_object_t *, module_config_t *, QWidget *,
bool, QGridLayout*, int& );