mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-15 02:24:50 +02:00
* Fixed crash bug caused by multiple sources going on- and offline at a time.
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
Version 0.0.4:
|
||||||
|
* Fixed a crash situation caused by sources going on- or offline.
|
||||||
|
|
||||||
Version 0.0.3:
|
Version 0.0.3:
|
||||||
* Show spinner while resolving playlists.
|
* Show spinner while resolving playlists.
|
||||||
* Go back to previous page visible when deleting a playlist.
|
* Go back to previous page visible when deleting a playlist.
|
||||||
|
@@ -89,10 +89,13 @@ Query::refreshResults()
|
|||||||
void
|
void
|
||||||
Query::onResultStatusChanged()
|
Query::onResultStatusChanged()
|
||||||
{
|
{
|
||||||
|
{
|
||||||
|
QMutexLocker lock( &m_mutex );
|
||||||
if ( m_results.count() )
|
if ( m_results.count() )
|
||||||
qStableSort( m_results.begin(), m_results.end(), Query::resultSorter );
|
qStableSort( m_results.begin(), m_results.end(), Query::resultSorter );
|
||||||
checkResults();
|
}
|
||||||
|
|
||||||
|
checkResults();
|
||||||
emit resultsChanged();
|
emit resultsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -180,6 +183,9 @@ Query::checkResults()
|
|||||||
{
|
{
|
||||||
bool becameSolved = false;
|
bool becameSolved = false;
|
||||||
bool becameUnsolved = true;
|
bool becameUnsolved = true;
|
||||||
|
{
|
||||||
|
QMutexLocker lock( &m_mutex );
|
||||||
|
|
||||||
m_playable = false;
|
m_playable = false;
|
||||||
|
|
||||||
// hook up signals, and check solved status
|
// hook up signals, and check solved status
|
||||||
@@ -205,6 +211,7 @@ Query::checkResults()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( m_solved && becameUnsolved )
|
if ( m_solved && becameUnsolved )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user