mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-02 20:28:14 +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:
@@ -221,7 +221,7 @@ Pipeline::shuntNext()
|
|||||||
void
|
void
|
||||||
Pipeline::shunt( const query_ptr& q )
|
Pipeline::shunt( const query_ptr& q )
|
||||||
{
|
{
|
||||||
if( q->solved() )
|
if ( q->solved() )
|
||||||
{
|
{
|
||||||
qDebug() << "Query solved, pipeline aborted:" << q->toString()
|
qDebug() << "Query solved, pipeline aborted:" << q->toString()
|
||||||
<< "numresults:" << q->results().length();
|
<< "numresults:" << q->results().length();
|
||||||
|
@@ -81,7 +81,7 @@ Query::resultUnavailable()
|
|||||||
{
|
{
|
||||||
if ( m_results.value( i ).data() == result )
|
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 );
|
m_results.removeAt( i );
|
||||||
|
|
||||||
emit resultsRemoved( r );
|
emit resultsRemoved( r );
|
||||||
@@ -90,7 +90,10 @@ Query::resultUnavailable()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( m_results.isEmpty() ) // FIXME proper score checking
|
if ( m_results.isEmpty() ) // FIXME proper score checking
|
||||||
|
{
|
||||||
|
m_solved = false;
|
||||||
emit solvedStateChanged( false );
|
emit solvedStateChanged( false );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user