From 64a0861bc42b2667a562ce8fbf82081282241bbc Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 4 Apr 2019 21:12:09 +0000 Subject: fixed qt 5.13 warnings git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8770 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playstate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qmmpui/playstate.cpp') 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()); } -- cgit v1.2.3-13-gbd6f