summaryrefslogtreecommitdiffstats
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
parentf6936782351929d3b261947ad08b80342463fd4e (diff)
downloadsubsurface-114904a48f7ec6f10e355da24be2bfa1e5821a0e.tar.gz
iOS: always create subsurface.log file
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qmlmanager.cpp2
-rw-r--r--mobile-widgets/qmlmanager.h2
2 files changed, 2 insertions, 2 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)) {
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index 2d5a58ac4..01c56cae4 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -245,7 +245,7 @@ private:
bool m_btEnabled;
void updateAllGlobalLists();
-#if defined(Q_OS_ANDROID)
+#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
QString appLogFileName;
QFile appLogFile;
bool appLogFileOpen;