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:
parent
38bae2d53d
commit
703a20847a
@ -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();
|
||||
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user