1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 00:24:12 +02:00

* Fixed m_playable in Query.

This commit is contained in:
Christian Muehlhaeuser
2011-03-19 07:28:09 +01:00
parent de2d8aa2fd
commit 5b7775d7a1

View File

@@ -168,19 +168,24 @@ Query::checkResults()
{
bool becameSolved = false;
bool becameUnsolved = true;
m_playable = m_results.count() > 0;
m_playable = false;
// hook up signals, and check solved status
foreach( const result_ptr& rp, m_results )
{
if ( !m_solved && rp->score() > 0.99 && rp->collection()->source()->isOnline() )
if ( rp->collection()->source()->isOnline() )
{
m_solved = true;
becameSolved = true;
}
if ( rp->score() > 0.99 && rp->collection()->source()->isOnline() )
{
becameUnsolved = false;
m_playable = true;
if ( !m_solved && rp->score() > 0.99 )
{
m_solved = true;
becameSolved = true;
}
if ( rp->score() > 0.99 )
{
becameUnsolved = false;
}
}
}