From: Rafaël Carré Date: Thu, 10 Dec 2009 14:43:13 +0000 (+0100) Subject: Qt4: check random button if random is set X-Git-Tag: 1.1.0-ff~2045 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3fdb41b6a07b0cbf2b8ca20b391a6ef158d884df;p=vlc Qt4: check random button if random is set --- diff --git a/modules/gui/qt4/components/controller.cpp b/modules/gui/qt4/components/controller.cpp index 1ca604b16c..88e41c2623 100644 --- a/modules/gui/qt4/components/controller.cpp +++ b/modules/gui/qt4/components/controller.cpp @@ -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 ) ); }