aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playlistmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmpui/playlistmodel.cpp')
-rw-r--r--src/qmmpui/playlistmodel.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp
index 7fe8daacb..4033aaa20 100644
--- a/src/qmmpui/playlistmodel.cpp
+++ b/src/qmmpui/playlistmodel.cpp
@@ -462,6 +462,13 @@ void PlayListModel::setSelected(int first, int last, bool selected)
emit listChanged(SELECTION);
}
+void PlayListModel::setSelected(QList<int> indexes, bool selected)
+{
+ foreach (int idx, indexes)
+ m_container->setSelected(idx, selected);
+ emit listChanged(SELECTION);
+}
+
void PlayListModel::removeSelected()
{
removeSelection(false);