From 4ad1efbcf5489c231794fb239b6200c9cd5e64c3 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 4 Apr 2012 16:41:00 +0200 Subject: [PATCH] * Fixed crash in AudioControls. --- src/audiocontrols.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audiocontrols.cpp b/src/audiocontrols.cpp index f680ba9b4..64190e9bc 100644 --- a/src/audiocontrols.cpp +++ b/src/audiocontrols.cpp @@ -358,7 +358,7 @@ void AudioControls::onPlaybackTimer( qint64 msElapsed ) { const int seconds = msElapsed / 1000; - if ( seconds != m_lastTextSecondShown ) + if ( seconds != m_lastTextSecondShown && !m_currentTrack.isNull() ) { ui->timeLabel->setText( TomahawkUtils::timeToString( seconds ) ); ui->timeLeftLabel->setText( "-" + TomahawkUtils::timeToString( m_currentTrack->duration() - seconds ) );