diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-03-12 03:01:33 +0100 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-03-12 03:01:33 +0100 |
commit | 9f86b7353f1cdb01fe98efa8130fb6ccb5b4337d (patch) | |
tree | 497f58a2c48c668e2ced4d2c9c54f668dde3cbad /src | |
parent | a52dae6a79c1c19ee2391037cfdc6d557381bb88 (diff) | |
parent | b7c2759118f4cc76a9cdded1e7626ac3342267e8 (diff) | |
download | qtlocation-9f86b7353f1cdb01fe98efa8130fb6ccb5b4337d.tar.gz |
Merge remote-tracking branch 'origin/5.12' into 5.13v5.13.0-beta1
Change-Id: Ie1c74c3d6d89fbc715befa53c6fa6f85c0fdf0bc
Diffstat (limited to 'src')
-rw-r--r-- | src/location/maps/qgeofiletilecache.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/location/maps/qgeofiletilecache.cpp b/src/location/maps/qgeofiletilecache.cpp index df89c889..559fc013 100644 --- a/src/location/maps/qgeofiletilecache.cpp +++ b/src/location/maps/qgeofiletilecache.cpp @@ -118,7 +118,9 @@ void QGeoFileTileCache::init() qWarning() << "Plugin uses uninitialized QGeoFileTileCache directory which was deleted during startup"; } - QDir::root().mkpath(directory_); + const bool directoryCreated = QDir::root().mkpath(directory_); + if (!directoryCreated) + qWarning() << "Failed to create cache directory " << directory_; // default values if (!isDiskCostSet_) { // If setMaxDiskUsage has not been called yet |