aboutsummaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-11-22 21:05:27 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-11-22 21:05:27 +0000
commit62114bba62024d81c3d176c17abd942b188bf1f6 (patch)
tree8658c084924ba70f742e3c563d6eb15bbad1c530 /src/ui
parent52345cefa8b60f20e88c12f787e1f27ec752c09c (diff)
downloadqmmp-62114bba62024d81c3d176c17abd942b188bf1f6.tar.gz
qmmp-62114bba62024d81c3d176c17abd942b188bf1f6.tar.bz2
qmmp-62114bba62024d81c3d176c17abd942b188bf1f6.zip
fixed playlist settings update
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1397 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/display.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/display.cpp b/src/ui/display.cpp
index fab49fbf9..c8c619541 100644
--- a/src/ui/display.cpp
+++ b/src/ui/display.cpp
@@ -23,7 +23,7 @@
#include <QMenu>
#include <qmmp/soundcore.h>
#include <qmmpui/mediaplayer.h>
-#include <qmmpui/playlistmodel.h>
+#include <qmmpui/playlistmanager.h>
#include "skin.h"
#include "mainvisual.h"
#include "button.h"
@@ -114,9 +114,9 @@ MainDisplay::MainDisplay (QWidget *parent)
connect(m_core, SIGNAL(stateChanged(Qmmp::State)), SLOT(setState(Qmmp::State)));
connect(m_core, SIGNAL(volumeChanged(int,int)), SLOT(setVolume(int, int)));
connect(m_core, SIGNAL(elapsedChanged(qint64)),m_titlebar, SLOT(setTime(qint64)));
- /*PlayListModel *model = MediaPlayer::instance()->playListModel();
- connect(model, SIGNAL(repeatableListChanged(bool)), m_repeatButton, SLOT(setON(bool)));
- connect(model, SIGNAL(shuffleChanged(bool)), m_shuffleButton, SLOT(setON(bool)));*/
+ PlayListManager *pl_manager = MediaPlayer::instance()->playListManager();
+ connect(pl_manager, SIGNAL(repeatableListChanged(bool)), m_repeatButton, SLOT(setON(bool)));
+ connect(pl_manager, SIGNAL(shuffleChanged(bool)), m_shuffleButton, SLOT(setON(bool)));
updatePositions();
updateMask();
}