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