aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/mediaplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmpui/mediaplayer.cpp')
-rw-r--r--src/qmmpui/mediaplayer.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/qmmpui/mediaplayer.cpp b/src/qmmpui/mediaplayer.cpp
index 56621d9ee..53df32ba8 100644
--- a/src/qmmpui/mediaplayer.cpp
+++ b/src/qmmpui/mediaplayer.cpp
@@ -143,11 +143,7 @@ void MediaPlayer::stop()
void MediaPlayer::next()
{
- if (!m_pl_manager->currentPlayList()->isEmptyQueue())
- {
- m_pl_manager->currentPlayList()->setCurrentToQueued();
- }
- else if (!m_pl_manager->currentPlayList()->next())
+ if (!m_pl_manager->currentPlayList()->next())
{
stop();
return;
@@ -194,11 +190,7 @@ void MediaPlayer::setRepeatable(bool r)
void MediaPlayer::playNext()
{
- if (!m_pl_manager->currentPlayList()->isEmptyQueue()) //TODO move this inside PlayListModel
- {
- m_pl_manager->currentPlayList()->setCurrentToQueued();
- }
- else if (!m_pl_manager->currentPlayList()->next())
+ if (!m_pl_manager->currentPlayList()->next())
{
stop();
return;