diff --git a/src/libtomahawk/TomahawkSettings.cpp b/src/libtomahawk/TomahawkSettings.cpp index d8bd1063c..3dbf770c6 100644 --- a/src/libtomahawk/TomahawkSettings.cpp +++ b/src/libtomahawk/TomahawkSettings.cpp @@ -591,6 +591,20 @@ TomahawkSettings::doUpgrade( int oldVersion, int newVersion ) createSpotifyAccount(); } } + else if ( oldVersion == 12 ) + { + // Force attica resolver pixmap cache refresh + QDir cacheDir = TomahawkUtils::appDataDir(); + if ( cacheDir.cd( "atticacache" ) ) + { + QStringList files = cacheDir.entryList( QStringList() << "*.png" ); + foreach ( const QString& file, files ) + { + const bool removed = cacheDir.remove( file ); + tDebug() << "Tried to remove cached image, succeeded?" << removed << cacheDir.filePath( file ); + } + } + } } diff --git a/src/libtomahawk/TomahawkSettings.h b/src/libtomahawk/TomahawkSettings.h index cfd43baeb..6b12e198b 100644 --- a/src/libtomahawk/TomahawkSettings.h +++ b/src/libtomahawk/TomahawkSettings.h @@ -28,7 +28,7 @@ #include #include -#define TOMAHAWK_SETTINGS_VERSION 12 +#define TOMAHAWK_SETTINGS_VERSION 13 /** * Convenience wrapper around QSettings for tomahawk-specific config