From 064a8d78034ed277011509f29102a8b803d49343 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 24 Jan 2011 01:24:27 +0100 Subject: [PATCH] * Don't try to scrobble if scrobbling isn't configured. --- src/scrobbler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scrobbler.cpp b/src/scrobbler.cpp index 228604b9a..6f5689921 100644 --- a/src/scrobbler.cpp +++ b/src/scrobbler.cpp @@ -140,6 +140,9 @@ Scrobbler::scrobble() { Q_ASSERT( QThread::currentThread() == thread() ); + if ( !m_scrobbler || m_track.isNull() ) + return; + qDebug() << Q_FUNC_INFO << m_track.toString(); m_scrobbler->cache( m_track ); m_scrobbler->submit();