1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-24 01:39:42 +01:00

Debug and a potential windows fix

This commit is contained in:
Leo Franchi 2012-05-19 20:26:01 -04:00
parent 4507315f3b
commit 57ab3f73db
2 changed files with 7 additions and 0 deletions

View File

@ -200,6 +200,7 @@ SpotifyAccount::authenticate()
if ( m_spotifyResolver.isNull() && state == AtticaManager::Installed )
{
// We don;t have the resolver but it has been installed via attica already, so lets just turn it on
qDebug() << "No valid spotify resolver running, but attica reports it is installed, so start it up";
hookupResolver();
}
else if ( m_spotifyResolver.isNull() )
@ -216,8 +217,13 @@ SpotifyAccount::authenticate()
}
else if ( !m_spotifyResolver.data()->running() )
{
qDebug() << "Spotify resolver exists but stopped, starting";
m_spotifyResolver.data()->start();
}
else
{
qDebug() << "Spotify resolver exists and is running, ignore authentication attempt";
}
emit connectionStateChanged( connectionState() );
}

View File

@ -830,6 +830,7 @@ unzipFileInFolder( const QString &zipFileName, const QDir &folder )
if ( !out.open( QIODevice::WriteOnly ) )
{
tLog() << "Failed to open zip extract file:" << out.errorString() << info.name;
fileInZip.close();
continue;
}