iOS: always create subsurface.log file

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-04-12 23:05:23 -07:00
parent f693678235
commit 114904a48f
2 changed files with 2 additions and 2 deletions

View file

@ -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)) {

View file

@ -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;