Commit 21d3dc08 authored by Sergey Ivanov's avatar Sergey Ivanov
Browse files

Fix song scrobbling if It was paused.

BUG: 267477
parent b917f9e3
......@@ -5,6 +5,7 @@ Amarok ChangeLog
VERSION 2.4.1
BUGFIXES:
* Fix song scrobbling if It was paused. (BR: 267477)
* Screen escape characters in MusicBrainz request string. (BR: 269455)
* Fixed detection of iPod devices.
* Fixed crash when the lyrics applet was removed and re-added while a
......
......@@ -551,8 +551,7 @@ EngineController::stop( bool forceInstant ) //SLOT
unsubscribeFrom( m_currentTrack );
if( m_currentAlbum )
unsubscribeFrom( m_currentAlbum );
m_currentTrack = 0;
emit trackChanged( Meta::TrackPtr( 0 ) );
m_currentTrack = 0;
m_currentAlbum = 0;
emit trackChanged( m_currentTrack );
......
......@@ -59,7 +59,8 @@ ScrobblerAdapter::ScrobblerAdapter( QObject *parent, const QString &clientId )
this, SLOT( stopped( qint64, qint64 ) ) );
connect( engine, SIGNAL( trackPositionChanged( qint64, bool ) ),
this, SLOT( trackPositionChanged( qint64, bool ) ) );
connect( engine, SIGNAL( trackPlaying( Meta::TrackPtr ) ),
//Use trackChanged instead of trackPlaying to prevent reset of current track after Unpausing.
connect( engine, SIGNAL( trackChanged( Meta::TrackPtr ) ),
this, SLOT( trackPlaying( Meta::TrackPtr ) ) );
connect( engine, SIGNAL( trackMetadataChanged( Meta::TrackPtr ) ),
this, SLOT( trackMetadataChanged( Meta::TrackPtr ) ) );
......@@ -161,7 +162,6 @@ ScrobblerAdapter::stopped( qint64 finalPosition, qint64 trackLength )
trackPositionChanged( finalPosition, false );
checkScrobble();
resetVariables();
}
......
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