mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
bump TOMAHAWK_SETTINGS_VERSION & write upgrade code (to remove file echonest_stylesandmoods.dat)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user