diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-07-09 18:23:16 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-09 18:23:16 -0700 |
commit | 7b922a1f72f78dbe4472066a0c9ccf3f658b4202 (patch) | |
tree | d0c9d4a0434614eb1d286a702436d6705e7868c1 /mobile-widgets/qmlmanager.cpp | |
parent | dbb5826f2af60219137b361a5d59fae3987bc908 (diff) | |
download | subsurface-7b922a1f72f78dbe4472066a0c9ccf3f658b4202.tar.gz |
QML UI: actually write libdc logfile
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index a4fe21dab..688c97ba5 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -92,6 +92,8 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false), m_lastDevicePixelRatio = qApp->devicePixelRatio(); connect(qobject_cast<QApplication *>(QApplication::instance()), &QApplication::applicationStateChanged, this, &QMLManager::applicationStateChanged); + QString libdcLogFileName = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation).first() + "/libdivecomputer.log"; + logfile_name = strdup(libdcLogFileName.toUtf8().data()); #if defined(Q_OS_ANDROID) appLogFileName = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation).first() + "/subsurface.log"; appLogFile.setFileName(appLogFileName); @@ -1553,6 +1555,7 @@ bool QMLManager::libdcLog() const void QMLManager::setLibdcLog(bool value) { m_libdcLog = value; + DCDeviceData::instance()->setSaveLog(value); emit libdcLogChanged(); } |