]> git.sesse.net Git - vlc/commitdiff
Qt4 - Remove unreachable code.
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 6 Nov 2007 02:30:19 +0000 (02:30 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 6 Nov 2007 02:30:19 +0000 (02:30 +0000)
modules/gui/qt4/components/preferences_widgets.cpp

index 59bac28d521dd2747abd28977545464830ee6ac8..6844be6826357d2e4eb61fe4e4c1805e233dc8b5 100644 (file)
@@ -1008,16 +1008,8 @@ KeySelectorControl::KeySelectorControl( vlc_object_t *_p_this,
     gLayout->addWidget( shortcutValue, 3, 1, 1, 2 );
     gLayout->addWidget( setButton, 3, 3, 1, 1 );
 
-    if( !l ) /* This shouldn't happen */
-    {
-        QVBoxLayout *layout = new QVBoxLayout();
-        layout->addWidget( label, 0 ); layout->addWidget( table, 1 );
-        widget->setLayout( layout );
-    }
-    else
-    {
-        l->addWidget( keyContainer, line, 0, 1, 2 );
-    }
+    l->addWidget( keyContainer, line, 0, 1, 2 );
+
     CONNECT( clearButton, clicked(), shortcutValue, clear() );
     BUTTONACT( setButton, setTheKey() );
 }