qt4 preferences: combo is mandatory in StringListConfigControl constructor
authorRafaël Carré <funman@videolan.org>
Mon, 15 Oct 2007 21:17:12 +0000 (21:17 +0000)
committerRafaël Carré <funman@videolan.org>
Mon, 15 Oct 2007 21:17:12 +0000 (21:17 +0000)
modules/gui/qt4/components/preferences_widgets.hpp

index b63ff93..836e66f 100644 (file)
@@ -367,8 +367,8 @@ public:
                              QComboBox*, bool );
     virtual ~StringListConfigControl() {};
     virtual QString getValue();
                              QComboBox*, bool );
     virtual ~StringListConfigControl() {};
     virtual QString getValue();
-    virtual void hide() { if( combo ) combo->hide(); if( label ) label->hide(); }
-    virtual void show() { if( combo ) combo->show(); if( label ) label->show(); }
+    virtual void hide() { combo->hide(); if( label ) label->hide(); }
+    virtual void show() { combo->show(); if( label ) label->show(); }
 private:
     void finish( bool );
     QLabel *label;
 private:
     void finish( bool );
     QLabel *label;