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

Don't start resolver if the path no longer exists

This commit is contained in:
Leo Franchi 2012-05-20 16:24:19 -04:00
parent e0693475d7
commit 675841e9a7

View File

@ -117,11 +117,17 @@ SpotifyAccount::init()
}
else if ( state == AtticaManager::Installed || !path.isEmpty() )
{
if ( !path.isEmpty() )
{
QFileInfo info( path );
// Resolver was deleted, so abort.
if ( !info.exists() )
return;
}
hookupResolver();
}
}
void
SpotifyAccount::hookupResolver()
{