From 5b7775d7a14f78b065c75558cd763f80bcd17b69 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sat, 19 Mar 2011 07:28:09 +0100 Subject: [PATCH] * Fixed m_playable in Query. --- src/libtomahawk/query.cpp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/libtomahawk/query.cpp b/src/libtomahawk/query.cpp index 7a5b54772..750ccec3f 100644 --- a/src/libtomahawk/query.cpp +++ b/src/libtomahawk/query.cpp @@ -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; + } } }