Commit ee4cb2b3 authored by Sergey Ivanov's avatar Sergey Ivanov
Browse files

Fixed track's statistics update in case of StopAfterCurrent playback mode...

Fixed track's statistics update in case of StopAfterCurrent playback mode (prevent double statistics change).
BUG: 265654
parent 0dc7997d
......@@ -20,6 +20,8 @@ VERSION 2.4.1
<bhargav.1191@gmail.com>. (BR 248690)
BUGFIXES:
* Fixed track's statistics update in case of StopAfterCurrent playback mode
(prevent double statistics change). (BR 265654)
* Delete .mood files when tracks got removed from collection via Collection
view context menu, and move them to new destination during Organize Collection process.
(BR 261629)
......
......@@ -1016,10 +1016,6 @@ EngineController::slotFinished()
if( m_currentTrack && !m_multiPlayback && !m_multiSource )
{
// TODO: what happens if (due to an error) the track never really played? You can't say trackFinished in such a case.
const qint64 pos = trackPositionMs();
const qint64 length = m_currentTrack->length();
m_currentTrack->finishedPlaying( double(pos)/double(length) );
if( !m_nextTrack && m_nextUrl.isEmpty() )
emit stopped( trackPositionMs(), m_currentTrack->length() );
unsubscribeFrom( m_currentTrack );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment