summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mobile-widgets/qmlmanager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index e5e9b7892..8bea69577 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -115,6 +115,7 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
{
m_instance = this;
m_lastDevicePixelRatio = qApp->devicePixelRatio();
+ timer.start();
connect(qobject_cast<QApplication *>(QApplication::instance()), &QApplication::applicationStateChanged, this, &QMLManager::applicationStateChanged);
QString libdcLogFileName = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation).first() + "/libdivecomputer.log";
@@ -1323,8 +1324,6 @@ void QMLManager::setLogText(const QString &logText)
void QMLManager::appendTextToLog(const QString &newText)
{
- if (!timer.isValid())
- timer.start();
qDebug() << QString::number(timer.elapsed() / 1000.0,'f', 3) + ": " + newText;
}