mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-15 10:33:59 +02:00
* Fixed Query crash.
This commit is contained in:
@@ -173,18 +173,19 @@ Query::checkResults()
|
|||||||
// 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 ( rp->collection()->source()->isOnline() )
|
if ( !rp->collection().isNull() && rp->collection()->source()->isOnline() )
|
||||||
{
|
{
|
||||||
m_playable = true;
|
m_playable = true;
|
||||||
|
|
||||||
if ( !m_solved && rp->score() > 0.99 )
|
if ( rp->score() > 0.99 )
|
||||||
|
{
|
||||||
|
becameUnsolved = false;
|
||||||
|
|
||||||
|
if ( !m_solved )
|
||||||
{
|
{
|
||||||
m_solved = true;
|
m_solved = true;
|
||||||
becameSolved = true;
|
becameSolved = true;
|
||||||
}
|
}
|
||||||
if ( rp->score() > 0.99 )
|
|
||||||
{
|
|
||||||
becameUnsolved = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user