summaryrefslogtreecommitdiffstats
path: root/app/file_operation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'app/file_operation.cpp')
-rw-r--r--app/file_operation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/file_operation.cpp b/app/file_operation.cpp
index 09bd4d0..f3814d8 100644
--- a/app/file_operation.cpp
+++ b/app/file_operation.cpp
@@ -27,12 +27,14 @@ void File_Operation::initFileOperation(){
QJsonDocument jsonDoc(QJsonDocument::fromJson(data));
QJsonObject jsonObj(jsonDoc.object());
+#ifndef ENABLE_OSM
if(jsonObj.contains("mapAccessToken")){
m_mapAccessToken = jsonObj["mapAccessToken"].toString();
}else{
fprintf(stderr,"Failed to find mapAccessToken data \"%s\": %m", qPrintable(NAVI_CONFIG_FILEPATH));
return;
}
+#endif
if(jsonObj.contains("speed")){
m_car_speed = jsonObj["speed"].toDouble();