From e4dda5059cf63f8b10f6b15da845e3a91c03544f Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 28 Oct 2011 18:08:13 +0000 Subject: added removePlayList(int index) to api git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2459 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistmanager.cpp | 5 +++++ src/qmmpui/playlistmanager.h | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src/qmmpui') 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); /*! @@ -202,6 +202,10 @@ public slots: * Removes playlist \b model. */ void removePlayList(PlayListModel *model); + /*! + * Removes playlist with index \b index. + */ + void removePlayList(int index); /*! * Moves playlist with index \b i to index \b j. */ -- cgit v1.2.3-13-gbd6f