diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-08-20 18:07:17 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-08-20 18:07:17 +0000 |
| commit | fce0e4d52345c18213662dc6153993ea55ab4f84 (patch) | |
| tree | 783fa5bd43feeab9b2ae2ffb3d79014d47bcef68 /src/qmmpui/playlistmodel.cpp | |
| parent | 4ad1526dc8448d6e379cdc92836d797a977b5e20 (diff) | |
| download | qmmp-fce0e4d52345c18213662dc6153993ea55ab4f84.tar.gz qmmp-fce0e4d52345c18213662dc6153993ea55ab4f84.tar.bz2 qmmp-fce0e4d52345c18213662dc6153993ea55ab4f84.zip | |
fixed 'revert list' function
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3632 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistmodel.cpp')
| -rw-r--r-- | src/qmmpui/playlistmodel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp index a224dccc2..6f8a5adf1 100644 --- a/src/qmmpui/playlistmodel.cpp +++ b/src/qmmpui/playlistmodel.cpp @@ -617,11 +617,11 @@ void PlayListModel::randomizeList() void PlayListModel::reverseList() { - /*for (int i = 0;i < m_items.size()/2;i++) - m_items.swap(i,m_items.size() - i - 1); - - m_current = m_items.indexOf(m_currentItem); - emit listChanged();*/ + if(m_container->isEmpty()) + return; + m_container->reverseList(); + m_current = m_container->indexOf(m_current_track); + emit listChanged(); } /* ////===============THE BEGINNING OF SORT IMPLEMENTATION =======================//// |
