]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/preferences_widgets.cpp
Remove Unneeded test (thx ipkiss)
[vlc] / modules / gui / qt4 / components / preferences_widgets.cpp
index 2bcffd12ccc2cefae7145ae9a32fe4048ce6ed14..adf0574bd6bb669dce81e44ba307eab44095aaad 100644 (file)
@@ -606,8 +606,11 @@ ModuleListConfigControl::ModuleListConfigControl( vlc_object_t *_p_this,
         QGridLayout *l, int &line) :
     VStringConfigControl( _p_this, _p_item, _parent )
 {
+    groupBox = NULL;
+    if( !p_item->psz_text ) return;
+
     groupBox = new QGroupBox ( qtr(p_item->psz_text) );
-    text = new QLineEdit();
+    text = new QLineEdit;
     QGridLayout *layoutGroupBox = new QGridLayout( groupBox );
 
     finish( bycat );
@@ -642,7 +645,6 @@ ModuleListConfigControl::~ModuleListConfigControl()
         delete *it;
     }
     delete groupBox;
-    delete text;
 }
 
 #define CHECKBOX_LISTS \