mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-31 06:02:27 +02:00
Fix catch-up functionality
This commit is contained in:
parent
989a16db7d
commit
8f69b9b680
@ -188,7 +188,7 @@ AudioEngine::next()
|
||||
{
|
||||
//it's a catch-up -- if they're trying to catch-up in the same track, don't do anything
|
||||
//so that you don't repeat the track and/or cause the retry timer to fire
|
||||
if ( !m_currentTrack.isNull() &&
|
||||
if ( !m_currentTrack.isNull() && !sourcepi->hasNextSong() &&
|
||||
m_currentTrack->id() == sourcepi->currentItem()->id() )
|
||||
return;
|
||||
}
|
||||
|
@ -58,6 +58,7 @@ public:
|
||||
|
||||
virtual Tomahawk::source_ptr source() const { return m_source; }
|
||||
|
||||
virtual bool hasNextSong() { return m_gotNextSong; }
|
||||
virtual void reset();
|
||||
|
||||
public slots:
|
||||
|
@ -353,7 +353,7 @@ SourceTreeView::latchOn()
|
||||
{
|
||||
//it's a catch-up -- if they're trying to catch-up in the same track, don't do anything
|
||||
//so that you don't repeat the track and/or cause the retry timer to fire
|
||||
if ( !AudioEngine::instance()->currentTrack().isNull() &&
|
||||
if ( !AudioEngine::instance()->currentTrack().isNull() && !sourcepi->hasNextSong() &&
|
||||
AudioEngine::instance()->currentTrack()->id() == sourcepi->currentItem()->id() )
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user