mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
fix starting a station animation with preview tracks
This commit is contained in:
@@ -167,6 +167,10 @@ DynamicModel::tracksGenerated( const QList< query_ptr > entries, int limitResolv
|
|||||||
filterUnresolved( entries );
|
filterUnresolved( entries );
|
||||||
} else {
|
} else {
|
||||||
addToPlaylist( entries, m_playlist->mode() == OnDemand ); // if ondemand, we're previewing, so clear old
|
addToPlaylist( entries, m_playlist->mode() == OnDemand ); // if ondemand, we're previewing, so clear old
|
||||||
|
|
||||||
|
if( m_playlist->mode() == OnDemand ) {
|
||||||
|
m_lastResolvedRow = rowCount( QModelIndex() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -210,6 +214,10 @@ DynamicModel::filteringTrackResolved( bool successful )
|
|||||||
addToPlaylist( m_resolvedList, true );
|
addToPlaylist( m_resolvedList, true );
|
||||||
m_toResolveList.clear();
|
m_toResolveList.clear();
|
||||||
m_resolvedList.clear();
|
m_resolvedList.clear();
|
||||||
|
|
||||||
|
if( m_playlist->mode() == OnDemand ) {
|
||||||
|
m_lastResolvedRow = rowCount( QModelIndex() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user