[vlc-commits] Qt: ProfileSelector: match options with selected profile

Francois Cartegnie git at videolan.org
Thu Jan 15 18:35:16 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jan 15 16:09:42 2015 +0100| [fb300fb5236461b16e8886c3518147263d0c8111] | committer: Francois Cartegnie

Qt: ProfileSelector: match options with selected profile

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fb300fb5236461b16e8886c3518147263d0c8111
---

 modules/gui/qt4/components/sout/profile_selector.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/components/sout/profile_selector.cpp b/modules/gui/qt4/components/sout/profile_selector.cpp
index 48bda5b..11ee1bc 100644
--- a/modules/gui/qt4/components/sout/profile_selector.cpp
+++ b/modules/gui/qt4/components/sout/profile_selector.cpp
@@ -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()



More information about the vlc-commits mailing list