aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-09 18:23:16 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-09 18:23:16 -0700
commit7b922a1f72f78dbe4472066a0c9ccf3f658b4202 (patch)
treed0c9d4a0434614eb1d286a702436d6705e7868c1 /mobile-widgets/qmlmanager.cpp
parentdbb5826f2af60219137b361a5d59fae3987bc908 (diff)
downloadsubsurface-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.cpp3
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();
}