From 114904a48f7ec6f10e355da24be2bfa1e5821a0e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 12 Apr 2018 23:05:23 -0700 Subject: iOS: always create subsurface.log file Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 2 +- mobile-widgets/qmlmanager.h | 2 +- 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; -- cgit v1.2.3-70-g09d2