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