mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
Debug and a potential windows fix
This commit is contained in:
@@ -200,6 +200,7 @@ SpotifyAccount::authenticate()
|
|||||||
if ( m_spotifyResolver.isNull() && state == AtticaManager::Installed )
|
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
|
// 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();
|
hookupResolver();
|
||||||
}
|
}
|
||||||
else if ( m_spotifyResolver.isNull() )
|
else if ( m_spotifyResolver.isNull() )
|
||||||
@@ -216,8 +217,13 @@ SpotifyAccount::authenticate()
|
|||||||
}
|
}
|
||||||
else if ( !m_spotifyResolver.data()->running() )
|
else if ( !m_spotifyResolver.data()->running() )
|
||||||
{
|
{
|
||||||
|
qDebug() << "Spotify resolver exists but stopped, starting";
|
||||||
m_spotifyResolver.data()->start();
|
m_spotifyResolver.data()->start();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
qDebug() << "Spotify resolver exists and is running, ignore authentication attempt";
|
||||||
|
}
|
||||||
|
|
||||||
emit connectionStateChanged( connectionState() );
|
emit connectionStateChanged( connectionState() );
|
||||||
}
|
}
|
||||||
|
@@ -830,6 +830,7 @@ unzipFileInFolder( const QString &zipFileName, const QDir &folder )
|
|||||||
if ( !out.open( QIODevice::WriteOnly ) )
|
if ( !out.open( QIODevice::WriteOnly ) )
|
||||||
{
|
{
|
||||||
tLog() << "Failed to open zip extract file:" << out.errorString() << info.name;
|
tLog() << "Failed to open zip extract file:" << out.errorString() << info.name;
|
||||||
|
fileInZip.close();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user