1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-07 17:42:35 +02:00

fix starting a station animation with preview tracks

This commit is contained in:
Leo Franchi 2011-03-08 20:29:20 -05:00
parent ed6a88dae1
commit 120914627c

View File

@ -167,6 +167,10 @@ DynamicModel::tracksGenerated( const QList< query_ptr > entries, int limitResolv
filterUnresolved( entries );
} else {
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 );
m_toResolveList.clear();
m_resolvedList.clear();
if( m_playlist->mode() == OnDemand ) {
m_lastResolvedRow = rowCount( QModelIndex() );
}
}
}