Revert "create plugin cache per application to prevent clashes on stratup"

This reverts commit e4e1ab0cbf.
This commit is contained in:
Patrick von Reth 2014-01-23 21:39:23 +01:00
parent e4e1ab0cbf
commit e61b9385d7
2 changed files with 2 additions and 3 deletions

View File

@ -28,6 +28,7 @@
#include <QDir>
#include <QDebug>
#include <QMetaEnum>
#include <QApplication>
using namespace Snore;
@ -144,7 +145,6 @@ void PluginContainer::updatePluginCache()
cache().setValue("version",Version::revision());
cache().setValue("buildtime",Version::buildTime());
cache().setValue("pluginPath",pluginDir().absolutePath());
cache().setValue("application", qApp->applicationFilePath());
QList<PluginContainer*> plugins = pluginCache(SnorePlugin::ALL).values();
cache().beginWriteArray("plugins");
for(int i=0;i< plugins.size();++i)

View File

@ -26,7 +26,6 @@
#include <QSettings>
#include <QFlag>
#include <QPluginLoader>
#include <QApplication>
@ -73,7 +72,7 @@ private:
if(_cache == NULL)
{
_cache = new QSettings("SnoreNotify","libsnore");
_cache->beginGroup( SnoreCorePrivate::computeHash(pluginDir().absolutePath().append(qApp->applicationFilePath()).toLatin1()));
_cache->beginGroup( SnoreCorePrivate::computeHash(pluginDir().absolutePath().toLatin1()));
}
return *_cache;
}