summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();