mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
* Fixed m_playable in Query.
This commit is contained in:
@@ -168,21 +168,26 @@ Query::checkResults()
|
|||||||
{
|
{
|
||||||
bool becameSolved = false;
|
bool becameSolved = false;
|
||||||
bool becameUnsolved = true;
|
bool becameUnsolved = true;
|
||||||
m_playable = m_results.count() > 0;
|
m_playable = false;
|
||||||
|
|
||||||
// hook up signals, and check solved status
|
// hook up signals, and check solved status
|
||||||
foreach( const result_ptr& rp, m_results )
|
foreach( const result_ptr& rp, m_results )
|
||||||
{
|
{
|
||||||
if ( !m_solved && rp->score() > 0.99 && rp->collection()->source()->isOnline() )
|
if ( rp->collection()->source()->isOnline() )
|
||||||
|
{
|
||||||
|
m_playable = true;
|
||||||
|
|
||||||
|
if ( !m_solved && rp->score() > 0.99 )
|
||||||
{
|
{
|
||||||
m_solved = true;
|
m_solved = true;
|
||||||
becameSolved = true;
|
becameSolved = true;
|
||||||
}
|
}
|
||||||
if ( rp->score() > 0.99 && rp->collection()->source()->isOnline() )
|
if ( rp->score() > 0.99 )
|
||||||
{
|
{
|
||||||
becameUnsolved = false;
|
becameUnsolved = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( m_solved && becameUnsolved )
|
if ( m_solved && becameUnsolved )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user