1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 09:04:33 +02:00

Delete cached icon when uninstalling attica resolver

This commit is contained in:
Leo Franchi
2012-09-14 15:40:28 -04:00
parent a936f53cea
commit 06b1541f85

View File

@@ -760,4 +760,12 @@ AtticaManager::doResolverRemove( const QString& id ) const
return; return;
TomahawkUtils::removeDirectory( resolverDir.absolutePath() ); TomahawkUtils::removeDirectory( resolverDir.absolutePath() );
QDir cacheDir = TomahawkUtils::appDataDir();
if ( !cacheDir.cd( "atticacache" ) )
return;
const bool removed = cacheDir.remove( id + ".png" );
tDebug() << "Tried to remove cached image, succeeded?" << removed << cacheDir.filePath( id );
} }