Commit 88a73680 authored by Don Gagne's avatar Don Gagne

Merge pull request #1003 from DonLakeFlyer/FixFileLocations

New File Locations key not set in QSettings at boot
parents 58e75ae8 a7e6cc57
......@@ -155,9 +155,11 @@ bool QGCApplication::init(void)
QDir documentsDir(documentsLocation);
Q_ASSERT(documentsDir.exists());
if (documentsDir.mkpath(_defaultSavedFileDirectoryName)) {
savedFilesLocation = documentsDir.filePath(_defaultSavedFileDirectoryName);
}
bool pathCreated = documentsDir.mkpath(_defaultSavedFileDirectoryName);
Q_UNUSED(pathCreated);
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