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

bump TOMAHAWK_SETTINGS_VERSION & write upgrade code (to remove file echonest_stylesandmoods.dat)

This commit is contained in:
Stefan Derkits 2013-01-27 17:04:16 +01:00
parent 3c8f3b102d
commit 643d71fd58
2 changed files with 8 additions and 1 deletions

View File

@ -605,6 +605,13 @@ TomahawkSettings::doUpgrade( int oldVersion, int newVersion )
}
}
}
else if ( oldVersion == 13 )
{
//Delete old echonest_stylesandmoods.dat file
QFile dataFile( TomahawkUtils::appDataDir().absoluteFilePath( "echonest_stylesandmoods.dat" ) );
const bool removed = dataFile.remove();
tDebug() << "Tried to remove echonest_stylesandmoods.dat, succeeded?" << removed;
}
}

View File

@ -28,7 +28,7 @@
#include <QtNetwork/QNetworkProxy>
#include <QStringList>
#define TOMAHAWK_SETTINGS_VERSION 13
#define TOMAHAWK_SETTINGS_VERSION 14
/**
* Convenience wrapper around QSettings for tomahawk-specific config