summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-04-12 23:05:23 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-04-13 17:07:43 -0700
commit114904a48f7ec6f10e355da24be2bfa1e5821a0e (patch)
treea7d2c0602ef2e184cbee89b00a1a35c9206ecb9b /mobile-widgets/qmlmanager.cpp
parentf6936782351929d3b261947ad08b80342463fd4e (diff)
downloadsubsurface-114904a48f7ec6f10e355da24be2bfa1e5821a0e.tar.gz
iOS: always create subsurface.log file
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 075e002e0..7ddf05e24 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -145,7 +145,7 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
QString libdcLogFileName = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation).first() + "/libdivecomputer.log";
logfile_name = copy_qstring(libdcLogFileName);
-#if defined(Q_OS_ANDROID)
+#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
appLogFileName = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation).first() + "/subsurface.log";
appLogFile.setFileName(appLogFileName);
if (!appLogFile.open(QIODevice::ReadWrite|QIODevice::Truncate)) {