diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-07-01 18:23:58 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-07-01 18:23:58 +0000 |
| commit | f492b1b9684844a45614eae55cc8b166f12520ba (patch) | |
| tree | 081b71b65c8628d91cf96788da5b293909a86b57 /src/qmmpui/groupedcontainer.cpp | |
| parent | f0741d2dd30fbe3ba8990a078ceb2151ebab4f34 (diff) | |
| download | qmmp-f492b1b9684844a45614eae55cc8b166f12520ba.tar.gz qmmp-f492b1b9684844a45614eae55cc8b166f12520ba.tar.bz2 qmmp-f492b1b9684844a45614eae55cc8b166f12520ba.zip | |
fixed normal container
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5199 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/groupedcontainer.cpp')
| -rw-r--r-- | src/qmmpui/groupedcontainer.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/qmmpui/groupedcontainer.cpp b/src/qmmpui/groupedcontainer.cpp index 1c3568c08..4ffaa9e71 100644 --- a/src/qmmpui/groupedcontainer.cpp +++ b/src/qmmpui/groupedcontainer.cpp @@ -336,7 +336,7 @@ bool GroupedContainer::move(QList<int> indexes, int from, int to) else { m_items.move(i,i + to - from); - swapTrackNumbers(i,i + to - from); + swapTrackNumbers(&m_items,i,i + to - from); group->trackList.move(i - firstIndex - 1, i + to - from - firstIndex - 1); } @@ -351,7 +351,7 @@ bool GroupedContainer::move(QList<int> indexes, int from, int to) else { m_items.move(indexes[i], indexes[i] + to - from); - swapTrackNumbers(indexes[i], indexes[i] + to - from); + swapTrackNumbers(&m_items,indexes[i], indexes[i] + to - from); group->trackList.move(indexes[i] - firstIndex - 1, indexes[i] + to - from - firstIndex - 1); } @@ -410,13 +410,6 @@ void GroupedContainer::randomizeList() m_update = true; } -void GroupedContainer::swapTrackNumbers(int index1, int index2) -{ - int number = m_items.at(index1)->trackNumber(); - m_items.at(index1)->setTrackNumber(m_items.at(index2)->trackNumber()); - m_items.at(index2)->setTrackNumber(number); -} - void GroupedContainer::updateCache() const { if(!m_update) |
