diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-10-29 18:13:00 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-10-29 18:13:00 +0000 |
| commit | 640afe96b1b2f53d579b93c46d5d9e760502daa9 (patch) | |
| tree | c00c43335cb9bda182db84c41c4adad66b559ced /src/qmmpui/playlistmodel.cpp | |
| parent | c81d3450d252f0de45b2c37e57c63ade18806425 (diff) | |
| download | qmmp-640afe96b1b2f53d579b93c46d5d9e760502daa9.tar.gz qmmp-640afe96b1b2f53d579b93c46d5d9e760502daa9.tar.bz2 qmmp-640afe96b1b2f53d579b93c46d5d9e760502daa9.zip | |
coding style fixes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6825 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistmodel.cpp')
| -rw-r--r-- | src/qmmpui/playlistmodel.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp index dd4cec525..20e82650e 100644 --- a/src/qmmpui/playlistmodel.cpp +++ b/src/qmmpui/playlistmodel.cpp @@ -203,12 +203,9 @@ void PlayListModel::insert(int index, QList<PlayListTrack *> tracks) int flags = 0; - PlayListItem *prevItem = m_container->item(index); foreach(PlayListTrack *track, tracks) { m_container->insertTrack(index, track); - index = prevItem ? m_container->indexOf(prevItem) : m_container->count(); - m_total_length += track->length(); if(m_container->trackCount() == 1) { |
