[vlc-devel] commit: QT4: set initial state of randombutton correctly (Ilkka Ollakka )

git version control git at videolan.org
Sat Feb 28 11:56:51 CET 2009


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Feb 28 12:56:22 2009 +0200| [74579daae8e2b99a7d49216ba15051e1b7a9d792] | committer: Ilkka Ollakka 

QT4: set initial state of randombutton correctly

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

 .../gui/qt4/components/playlist/standardpanel.cpp  |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index 35b4fd0..3b68e98 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -121,6 +121,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
     randomButton->setIcon( QIcon( ":/shuffle_on" ));
     randomButton->setToolTip( qtr( I_PL_RANDOM ));
     randomButton->setCheckable( true );
+    randomButton->setChecked( model->hasRandom() );
     BUTTONACT( randomButton, toggleRandom() );
     buttons->addWidget( randomButton );
 




More information about the vlc-devel mailing list