From ebb2d8d15c5c1d2aa6ab1627ea30c17142bceca0 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Fri, 3 Sep 2010 22:23:46 +0200 Subject: [PATCH] Qt extended panels: do not spam about options about modules that don't exist in 1.2 --- modules/gui/qt4/components/extended_panels.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp index 49eef478c2..51952fd121 100644 --- a/modules/gui/qt4/components/extended_panels.cpp +++ b/modules/gui/qt4/components/extended_panels.cpp @@ -396,6 +396,7 @@ void ExtVideo::initComboBoxItems( QObject *widget ) { QComboBox *combobox = qobject_cast( widget ); if( !combobox ) return; + QString option = OptionFromWidgetName( widget ); module_config_t *p_item = config_FindConfig( VLC_OBJECT( p_intf ), qtu( option ) ); @@ -505,11 +506,12 @@ void ExtVideo::setWidgetValue( QObject *widget ) free( val.psz_string ); } else - msg_Err( p_intf, - "Module %s's %s variable is of an unsupported type ( %d )", - qtu( module ), - qtu( option ), - i_type ); + if( p_obj ) + msg_Err( p_intf, + "Module %s's %s variable is of an unsupported type ( %d )", + qtu( module ), + qtu( option ), + i_type ); } void ExtVideo::updateFilterOptions() -- 2.39.2