diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-12-14 18:40:34 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-12-14 18:40:34 +0000 |
| commit | 992cbd13d6888470b32a2897a290bd373432acdd (patch) | |
| tree | c548cc337fa0bb7382bf565150974c739ce8634c /src | |
| parent | d60ec0e8daae7f51eb0cffd0b9b9da36c44112f2 (diff) | |
| download | qmmp-992cbd13d6888470b32a2897a290bd373432acdd.tar.gz qmmp-992cbd13d6888470b32a2897a290bd373432acdd.tar.bz2 qmmp-992cbd13d6888470b32a2897a290bd373432acdd.zip | |
fixed playlist regression
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3964 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
| -rw-r--r-- | src/qmmpui/playlistmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp index fbf543f2e..555ccd59e 100644 --- a/src/qmmpui/playlistmodel.cpp +++ b/src/qmmpui/playlistmodel.cpp @@ -453,7 +453,7 @@ void PlayListModel::removeTrack (int i) else { current_changed = true; - int current = qMin(i - 1, m_container->count() - 2); + int current = qMin(i - 1, m_container->count() - 1); current = qMax(current, 0); m_current_track = m_container->track(current); if(!m_current_track) |
