1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

Merge branch 'stable'

Conflicts:
	ChangeLog
	src/tomahawkwindow.cpp
This commit is contained in:
Leo Franchi
2011-04-11 11:03:31 -04:00
4 changed files with 34 additions and 32 deletions

View File

@@ -6,6 +6,9 @@ Version 0.1.0:
most OSes can't support enough file watches to handle a normal-sized
music collection.
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 )
{

View File

@@ -529,7 +529,7 @@ TomahawkApp::loadUrl( const QString& url )
if( f.exists() && info.suffix() == "xspf" ) {
XSPFLoader* l = new XSPFLoader( true, this );
qDebug() << "Loading spiff:" << url;
l->load( QUrl( url ) );
l->load( QUrl::fromUserInput( url ) );
}
}
return true;

View File

@@ -385,15 +385,7 @@ TomahawkWindow::loadSpiff()
return;
XSPFLoader* loader = new XSPFLoader;
QFileInfo info( urlstr );
if( info.isFile() )
{
QFile f( urlstr );
loader->load( f );
} else
{
loader->load( QUrl( urlstr ) );
}
loader->load( QUrl::fromUserInput( urlstr ) );
}