mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
iOS: always create subsurface.log file
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f693678235
commit
114904a48f
2 changed files with 2 additions and 2 deletions
|
@ -145,7 +145,7 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
|
||||||
|
|
||||||
QString libdcLogFileName = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation).first() + "/libdivecomputer.log";
|
QString libdcLogFileName = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation).first() + "/libdivecomputer.log";
|
||||||
logfile_name = copy_qstring(libdcLogFileName);
|
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";
|
appLogFileName = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation).first() + "/subsurface.log";
|
||||||
appLogFile.setFileName(appLogFileName);
|
appLogFile.setFileName(appLogFileName);
|
||||||
if (!appLogFile.open(QIODevice::ReadWrite|QIODevice::Truncate)) {
|
if (!appLogFile.open(QIODevice::ReadWrite|QIODevice::Truncate)) {
|
||||||
|
|
|
@ -245,7 +245,7 @@ private:
|
||||||
bool m_btEnabled;
|
bool m_btEnabled;
|
||||||
void updateAllGlobalLists();
|
void updateAllGlobalLists();
|
||||||
|
|
||||||
#if defined(Q_OS_ANDROID)
|
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
||||||
QString appLogFileName;
|
QString appLogFileName;
|
||||||
QFile appLogFile;
|
QFile appLogFile;
|
||||||
bool appLogFileOpen;
|
bool appLogFileOpen;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue