aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playstate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmpui/playstate.cpp')
-rw-r--r--src/qmmpui/playstate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmmpui/playstate.cpp b/src/qmmpui/playstate.cpp
index 0d6e70758..34f350b7a 100644
--- a/src/qmmpui/playstate.cpp
+++ b/src/qmmpui/playstate.cpp
@@ -97,7 +97,7 @@ void ShufflePlayState::prepare()
}
for (int i = 0; i < m_shuffled_indexes.count(); i++)
- m_shuffled_indexes.swap(i, qrand()%m_shuffled_indexes.size());
+ m_shuffled_indexes.swapItemsAt(i, qrand()%m_shuffled_indexes.size());
m_shuffled_indexes.prepend(m_model->currentIndex());
}