]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/controller.cpp
Qt4: check random button if random is set
[vlc] / 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 ) );
         }