1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02: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() ) else if ( state == AtticaManager::Installed || !path.isEmpty() )
{ {
if ( !path.isEmpty() )
{
QFileInfo info( path );
// Resolver was deleted, so abort.
if ( !info.exists() )
return;
}
hookupResolver(); hookupResolver();
} }
} }
void void
SpotifyAccount::hookupResolver() SpotifyAccount::hookupResolver()
{ {