1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 04:51:53 +02:00

* Set sources to unsolved when last source goes offline. Makes them re-resolve when one one comes back online.

This commit is contained in:
Christian Muehlhaeuser 2011-02-15 14:19:24 +01:00
parent 38bae2d53d
commit 703a20847a
2 changed files with 5 additions and 2 deletions

View File

@ -221,7 +221,7 @@ Pipeline::shuntNext()
void
Pipeline::shunt( const query_ptr& q )
{
if( q->solved() )
if ( q->solved() )
{
qDebug() << "Query solved, pipeline aborted:" << q->toString()
<< "numresults:" << q->results().length();

View File

@ -81,7 +81,7 @@ Query::resultUnavailable()
{
if ( m_results.value( i ).data() == result )
{
result_ptr r = m_results.value( i );
result_ptr r = m_results.value( i );
m_results.removeAt( i );
emit resultsRemoved( r );
@ -90,7 +90,10 @@ Query::resultUnavailable()
}
if ( m_results.isEmpty() ) // FIXME proper score checking
{
m_solved = false;
emit solvedStateChanged( false );
}
}