summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeofiletilecache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/maps/qgeofiletilecache.cpp')
-rw-r--r--src/location/maps/qgeofiletilecache.cpp4
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