From 5e439b990f3420523b85d819310e2a3e1a788464 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Sat, 31 Mar 2012 13:04:48 -0400 Subject: [PATCH] See if this fixes Chris' time-updating problem --- src/audiocontrols.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/audiocontrols.cpp b/src/audiocontrols.cpp index 85e4e2411..de5fa1306 100644 --- a/src/audiocontrols.cpp +++ b/src/audiocontrols.cpp @@ -361,6 +361,10 @@ AudioControls::onPlaybackStopped() void AudioControls::onPlaybackTimer( qint64 msElapsed ) { + const int seconds = msElapsed / 1000; + ui->timeLabel->setText( TomahawkUtils::timeToString( seconds ) ); + ui->timeLeftLabel->setText( "-" + TomahawkUtils::timeToString( m_currentTrack->duration() - seconds ) ); + //tDebug( LOGEXTRA ) << Q_FUNC_INFO << "msElapsed =" << msElapsed << "and timer current time =" << m_sliderTimeLine.currentTime() << "and m_seekMsecs =" << m_seekMsecs; if ( msElapsed > 0 && msElapsed != m_lastSliderCheck && m_seekMsecs == -1 && msElapsed - 500 < m_lastSliderCheck ) return; @@ -377,10 +381,6 @@ AudioControls::onPlaybackTimer( qint64 msElapsed ) if ( sender() != &m_phononTickCheckTimer ) m_phononTickCheckTimer.start( 1000 ); - const int seconds = msElapsed / 1000; - ui->timeLabel->setText( TomahawkUtils::timeToString( seconds ) ); - ui->timeLeftLabel->setText( "-" + TomahawkUtils::timeToString( m_currentTrack->duration() - seconds ) ); - if ( m_noTimeChange ) { if ( m_sliderTimeLine.currentTime() != msElapsed )