use revision again to identify the cache
This commit is contained in:
parent
2d95122749
commit
091625d0ba
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue