aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/qmmpui/playlistmanager.cpp3
-rw-r--r--src/qmmpui/playlistmanager.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/src/qmmpui/playlistmanager.cpp b/src/qmmpui/playlistmanager.cpp
index c755ecc42..4956f008f 100644
--- a/src/qmmpui/playlistmanager.cpp
+++ b/src/qmmpui/playlistmanager.cpp
@@ -148,11 +148,12 @@ void PlayListManager::removePlayList(PlayListModel *model)
void PlayListManager::move(int i, int j)
{
- if(i < 0 || j < 0)
+ if(i < 0 || j < 0 || i == j)
return;
if(i < m_models.count() && j < m_models.count())
{
m_models.move(i,j);
+ emit playListMoved(i,j);
emit playListsChanged();
}
}
diff --git a/src/qmmpui/playlistmanager.h b/src/qmmpui/playlistmanager.h
index d652b6e38..6fde5864a 100644
--- a/src/qmmpui/playlistmanager.h
+++ b/src/qmmpui/playlistmanager.h
@@ -135,6 +135,10 @@ signals:
*/
void playListRemoved(int index);
/*!
+ * Emitted when playlist changes its position from \b i to \b j.
+ */
+ void playListMoved(int i, int j);
+ /*!
* Emitted when the list of playlists is changed.
*/
void playListsChanged();