From c9123adfb6f6e3f9cb64bacfe1cdf148bed56d32 Mon Sep 17 00:00:00 2001 From: Nate Weibley Date: Tue, 13 Oct 2015 12:43:36 -0400 Subject: [PATCH] Build param cache path using QDir::filePath --- src/FactSystem/ParameterLoader.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FactSystem/ParameterLoader.cc b/src/FactSystem/ParameterLoader.cc index 3071eb270..4abf24136 100644 --- a/src/FactSystem/ParameterLoader.cc +++ b/src/FactSystem/ParameterLoader.cc @@ -643,8 +643,8 @@ void ParameterLoader::_tryCacheHashLoad(int uasId, QVariant hash_value) uint32_t crc32_value = 0; /* The datastructure of the cache table */ QMap cache_map; - - QFile cache_file(QFileInfo(QSettings().fileName()).path() + QDir::separator() + "param_cache"); + const QDir settingsDir(QFileInfo(QSettings().fileName()).dir()); + QFile cache_file(settingsDir.filePath("param_cache")); if (!cache_file.exists()) { /* no local cache, immediately refresh all params */ refreshAllParameters(); -- 2.22.0