1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 17:29:42 +01:00

Store the correct lifetime for cache data.

This commit is contained in:
Casey Link 2012-04-13 15:10:34 -05:00
parent 4b6eadd956
commit 613d40a605

View File

@ -108,7 +108,7 @@ void Cache::putData ( const QString& identifier, qint64 maxAge, const QString& k
const QString cacheDir = m_cacheBaseDir + identifier;
addClient ( identifier );
QSettings cached_settings ( cacheDir, QSettings::IniFormat );
cached_settings.setValue ( key, QVariant::fromValue ( CacheData ( maxAge, value ) ) );
cached_settings.setValue ( key, QVariant::fromValue ( CacheData ( QDateTime::currentMSecsSinceEpoch() + maxAge, value ) ) );
}
void Cache::addClient ( const QString& identifier )