1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 09:34:53 +02:00

* Fixed crash bug caused by multiple sources going on- and offline at a time.

This commit is contained in:
Christian Muehlhaeuser
2011-04-09 11:03:52 +02:00
parent c6442e4dfd
commit c0994e3c24
2 changed files with 31 additions and 21 deletions

View File

@@ -1,3 +1,6 @@
Version 0.0.4:
* Fixed a crash situation caused by sources going on- or offline.
Version 0.0.3:
* Show spinner while resolving playlists.
* Go back to previous page visible when deleting a playlist.

View File

@@ -89,10 +89,13 @@ Query::refreshResults()
void
Query::onResultStatusChanged()
{
{
QMutexLocker lock( &m_mutex );
if ( m_results.count() )
qStableSort( m_results.begin(), m_results.end(), Query::resultSorter );
checkResults();
}
checkResults();
emit resultsChanged();
}
@@ -180,6 +183,9 @@ Query::checkResults()
{
bool becameSolved = false;
bool becameUnsolved = true;
{
QMutexLocker lock( &m_mutex );
m_playable = false;
// hook up signals, and check solved status
@@ -205,6 +211,7 @@ Query::checkResults()
}
}
}
}
if ( m_solved && becameUnsolved )
{