Commit c9123adf authored by Nate Weibley's avatar Nate Weibley

Build param cache path using QDir::filePath

parent 3dff49a8
......@@ -643,8 +643,8 @@ void ParameterLoader::_tryCacheHashLoad(int uasId, QVariant hash_value)
uint32_t crc32_value = 0;
/* The datastructure of the cache table */
QMap<int, MapID2NamedParam> 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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment