Commit ebb2d8d1 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt extended panels: do not spam about options about modules that don't exist in 1.2

parent c4050dc3
...@@ -396,6 +396,7 @@ void ExtVideo::initComboBoxItems( QObject *widget ) ...@@ -396,6 +396,7 @@ void ExtVideo::initComboBoxItems( QObject *widget )
{ {
QComboBox *combobox = qobject_cast<QComboBox*>( widget ); QComboBox *combobox = qobject_cast<QComboBox*>( widget );
if( !combobox ) return; if( !combobox ) return;
QString option = OptionFromWidgetName( widget ); QString option = OptionFromWidgetName( widget );
module_config_t *p_item = config_FindConfig( VLC_OBJECT( p_intf ), module_config_t *p_item = config_FindConfig( VLC_OBJECT( p_intf ),
qtu( option ) ); qtu( option ) );
...@@ -505,11 +506,12 @@ void ExtVideo::setWidgetValue( QObject *widget ) ...@@ -505,11 +506,12 @@ void ExtVideo::setWidgetValue( QObject *widget )
free( val.psz_string ); free( val.psz_string );
} }
else else
msg_Err( p_intf, if( p_obj )
"Module %s's %s variable is of an unsupported type ( %d )", msg_Err( p_intf,
qtu( module ), "Module %s's %s variable is of an unsupported type ( %d )",
qtu( option ), qtu( module ),
i_type ); qtu( option ),
i_type );
} }
void ExtVideo::updateFilterOptions() void ExtVideo::updateFilterOptions()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment