aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playlistmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmpui/playlistmanager.cpp')
-rw-r--r--src/qmmpui/playlistmanager.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qmmpui/playlistmanager.cpp b/src/qmmpui/playlistmanager.cpp
index 4af84d1b4..a24d82a24 100644
--- a/src/qmmpui/playlistmanager.cpp
+++ b/src/qmmpui/playlistmanager.cpp
@@ -146,6 +146,17 @@ void PlayListManager::removePlayList(PlayListModel *model)
emit playListsChanged();
}
+void PlayListManager::move(int i, int j)
+{
+ if(i < 0 || j < 0)
+ return;
+ if(i < m_models.count() && j < m_models.count())
+ {
+ m_models.move(i,j);
+ emit playListsChanged();
+ }
+}
+
void PlayListManager::setRepeatableList(bool r)
{
if(m_repeatable == r)