Commit 1aa044cc authored by Don Gagne's avatar Don Gagne

New File Locations key not set in QSettings at boot

parent 38ccebd3
......@@ -155,9 +155,10 @@ bool QGCApplication::init(void)
QDir documentsDir(documentsLocation);
Q_ASSERT(documentsDir.exists());
if (documentsDir.mkpath(_defaultSavedFileDirectoryName)) {
bool pathCreated = documentsDir.mkpath(_defaultSavedFileDirectoryName);
Q_ASSERT(pathCreated);
savedFilesLocation = documentsDir.filePath(_defaultSavedFileDirectoryName);
}
settings.setValue(_savedFilesLocationKey, savedFilesLocation);
}
if (!savedFilesLocation.isEmpty()) {
......
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