aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qmmpui/playlistmanager.cpp5
-rw-r--r--src/qmmpui/playlistmanager.h6
2 files changed, 10 insertions, 1 deletions
diff --git a/src/qmmpui/playlistmanager.cpp b/src/qmmpui/playlistmanager.cpp
index 852224e03..d23872cad 100644
--- a/src/qmmpui/playlistmanager.cpp
+++ b/src/qmmpui/playlistmanager.cpp
@@ -195,6 +195,11 @@ void PlayListManager::removePlayList(PlayListModel *model)
emit playListsChanged();
}
+void PlayListManager::removePlayList(int index)
+{
+ removePlayList(playListAt(index));
+}
+
void PlayListManager::move(int i, int j)
{
if(i < 0 || j < 0 || i == j)
diff --git a/src/qmmpui/playlistmanager.h b/src/qmmpui/playlistmanager.h
index f49341a74..41299f36d 100644
--- a/src/qmmpui/playlistmanager.h
+++ b/src/qmmpui/playlistmanager.h
@@ -191,7 +191,7 @@ public slots:
*/
void activatePlayList(PlayListModel *model);
/*!
- * Sets current playlist by \b index.
+ * Sets current playlist with index \b index.
*/
void activatePlayList(int index);
/*!
@@ -203,6 +203,10 @@ public slots:
*/
void removePlayList(PlayListModel *model);
/*!
+ * Removes playlist with index \b index.
+ */
+ void removePlayList(int index);
+ /*!
* Moves playlist with index \b i to index \b j.
*/
void move(int i, int j);