summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <daniel.goodliffe@pressassociation.com>2015-05-27 17:00:33 +0100
committerDan Goodliffe <daniel.goodliffe@pressassociation.com>2015-05-27 17:00:33 +0100
commit94a58bcbc6dd59af7dae858b261de33cb53f94a0 (patch)
treea5261b4f93f8579035561d5975d674e2330f9281
parentRemove tmp dirs when tests complete (diff)
downloadproject2-94a58bcbc6dd59af7dae858b261de33cb53f94a0.tar.bz2
project2-94a58bcbc6dd59af7dae858b261de33cb53f94a0.tar.xz
project2-94a58bcbc6dd59af7dae858b261de33cb53f94a0.zip
Initialize the gcrypt library on start up
-rw-r--r--project2/files/presenterCache.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/project2/files/presenterCache.cpp b/project2/files/presenterCache.cpp
index 7c81ff8..897c85b 100644
--- a/project2/files/presenterCache.cpp
+++ b/project2/files/presenterCache.cpp
@@ -249,6 +249,11 @@ END_OPTIONS(FilePresenterCache)
class FilePresenterCacheLoader : public ElementLoader::For<FilePresenterCache> {
public:
+ FilePresenterCacheLoader()
+ {
+ gcry_check_version(GCRYPT_VERSION);
+ }
+
void onIdle() override
{
try {
@@ -261,6 +266,7 @@ class FilePresenterCacheLoader : public ElementLoader::For<FilePresenterCache> {
}
FilePresenterCache::openCaches.clear();
}
+
void onConfigLoad() override
{
FilePresenterCache::openCaches.clear();