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:
parent
3c8f3b102d
commit
643d71fd58
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user