]> git.sesse.net Git - vlc/commitdiff
Qt extended panels: do not spam about options about modules that don't exist in 1.2
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 3 Sep 2010 20:23:46 +0000 (22:23 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 3 Sep 2010 20:23:46 +0000 (22:23 +0200)
modules/gui/qt4/components/extended_panels.cpp

index 49eef478c2bf97f3defd7dd71dc682414db5ff8f..51952fd121327e108c9997d2a3448c0f51f8e2fb 100644 (file)
@@ -396,6 +396,7 @@ void ExtVideo::initComboBoxItems( QObject *widget )
 {
     QComboBox *combobox = qobject_cast<QComboBox*>( 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()