1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

* Fixed Query crash.

This commit is contained in:
Christian Muehlhaeuser
2011-03-19 07:34:34 +01:00
parent 5b7775d7a1
commit d3643636d2

View File

@@ -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 )
if ( rp->score() > 0.99 )
{
becameUnsolved = false;
if ( !m_solved )
{
m_solved = true;
becameSolved = true;
}
if ( rp->score() > 0.99 )
{
becameUnsolved = false;
}
}
}