Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
c9123adf
Commit
c9123adf
authored
Oct 13, 2015
by
Nate Weibley
Browse files
Build param cache path using QDir::filePath
parent
3dff49a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/FactSystem/ParameterLoader.cc
View file @
c9123adf
...
...
@@ -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
(
QS
ettings
()
.
file
Name
()).
path
()
+
QDir
::
separator
()
+
"param_cache"
);
const
QDir
settingsDir
(
QFileInfo
(
QSettings
().
fileName
()).
dir
());
QFile
cache_file
(
s
ettings
Dir
.
file
Path
(
"param_cache"
)
)
;
if
(
!
cache_file
.
exists
())
{
/* no local cache, immediately refresh all params */
refreshAllParameters
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment