mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 13:17:34 +02:00
Refreshing a query's results always sets playable- and solved-state to false.
This commit is contained in:
@@ -293,13 +293,17 @@ void
|
||||
Query::clearResults()
|
||||
{
|
||||
Q_D( Query );
|
||||
|
||||
d->solved = false;
|
||||
d->playable = false;
|
||||
|
||||
{
|
||||
QMutexLocker lock( &d->mutex );
|
||||
d->results.clear();
|
||||
}
|
||||
|
||||
d->solved = false;
|
||||
d->playable = false;
|
||||
emit playableStateChanged( false );
|
||||
emit solvedStateChanged( false );
|
||||
emit resultsChanged();
|
||||
}
|
||||
|
||||
@@ -525,6 +529,8 @@ Query::checkResults()
|
||||
{
|
||||
refreshResults();
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( d->playable != playable )
|
||||
{
|
||||
d->playable = playable;
|
||||
@@ -536,6 +542,7 @@ Query::checkResults()
|
||||
emit solvedStateChanged( d->solved );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
|
Reference in New Issue
Block a user