use revision again to identify the cache

This commit is contained in:
Patrick von Reth 2014-02-05 18:18:49 +01:00
parent 2d95122749
commit 091625d0ba
1 changed files with 2 additions and 3 deletions

View File

@ -119,7 +119,7 @@ void PluginContainer::updatePluginCache()
if(sema.acquire()) if(sema.acquire())
{ {
cache().sync(); cache().sync();
if(cache().value("buildtime").toString() == Version::buildTime()) if(cache().value("version").toString() == Version::revision())
{ {
sema.release(); sema.release();
return; return;
@ -181,8 +181,7 @@ const QHash<QString, PluginContainer *> PluginContainer::pluginCache(SnorePlugin
{ {
if(s_pluginCache.isEmpty()) if(s_pluginCache.isEmpty())
{ {
QString buildTime = cache().value("buildtime").toString(); if(cache().value("version").toString() != Version::revision())
if(buildTime != Version::buildTime())
{ {
updatePluginCache(); updatePluginCache();
} }