]> git.sesse.net Git - vlc/commitdiff
Qt: ProfileSelector: match options with selected profile
authorFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 15 Jan 2015 15:09:42 +0000 (16:09 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 15 Jan 2015 17:34:51 +0000 (18:34 +0100)
modules/gui/qt4/components/sout/profile_selector.cpp

index 48bda5bb91016571ebe3540f72865a671327640b..11ee1bc4779fd9d013074760ebc127b4734aa68c 100644 (file)
@@ -77,7 +77,7 @@ VLCProfileSelector::VLCProfileSelector( QWidget *_parent ): QWidget( _parent )
 
     CONNECT( profileBox, activated( int ),
              this, updateOptions( int ) );
-    updateOptions( 0 );
+    updateOptions( qMax(profileBox->currentIndex(), 0) );
 }
 
 VLCProfileSelector::~VLCProfileSelector()