]> git.sesse.net Git - vlc/commitdiff
Qt4: check random button if random is set
authorRafaël Carré <rafael.carre@gmail.com>
Thu, 10 Dec 2009 14:43:13 +0000 (15:43 +0100)
committerRafaël Carré <rafael.carre@gmail.com>
Thu, 10 Dec 2009 14:43:13 +0000 (15:43 +0100)
modules/gui/qt4/components/controller.cpp

index 1ca604b16ca0d643e7243bb2485299b1423be375..88e41c2623bd6bd1b1af139cfffc73664ccc32a5 100644 (file)
@@ -365,6 +365,7 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
     case RANDOM_BUTTON: {
         NORMAL_BUTTON( RANDOM );
         RANDOMButton->setCheckable( true );
+        RANDOMButton->setChecked( var_GetBool( THEPL, "random" ) );
         CONNECT( THEMIM, randomChanged( bool ),
                  RANDOMButton, setChecked( bool ) );
         }