Scrobble only when we are actually about to finish the current song.

We can't rely on the aboutToFinish() signal from Phonon (it is sometimes
emitted several times).


svn path=/trunk/KDE/kdemultimedia/juk/; revision=1282120
parent 40a328d0
......@@ -222,7 +222,6 @@ void PlayerManager::play(const FileHandle &file)
// The "currently playing" media object.
Phonon::MediaObject *mediaObject = m_media[m_curOutputPath];
connect(mediaObject, SIGNAL(aboutToFinish()), m_scrobbler, SLOT(scrobble()));
if(file.isNull()) {
if(paused())
......@@ -417,6 +416,7 @@ bool PlayerManager::mute()
void PlayerManager::slotNeedNextUrl()
{
m_scrobbler->scrobble();
if(m_file.isNull() || !m_crossfadeTracks)
return;
......
Markdown is supported
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