From 84b96ac2ae5aa60fd7ab03b0b0f8e0606af23e43 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 18 Jan 2018 12:46:29 +0100 Subject: Mobile: don't show timer twice in log-message This was probably an oversight - the timer was only shown for very specific messages. This was change to show the timer for all messages. Signed-off-by: Berthold Stoeger --- mobile-widgets/qmlmanager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 37857b9fc..e5e9b7892 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -160,8 +160,6 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false), void QMLManager::applicationStateChanged(Qt::ApplicationState state) { - if (!timer.isValid()) - timer.start(); QString stateText; switch (state) { case Qt::ApplicationActive: stateText = "active"; break; @@ -182,7 +180,7 @@ void QMLManager::applicationStateChanged(Qt::ApplicationState state) // make sure the user sees that we are saving data if they come back // while this is running saveChangesCloud(false); - appendTextToLog(QString::number(timer.elapsed() / 1000.0,'f', 3) + ": done saving to git local / remote"); + appendTextToLog("done saving to git local / remote"); } } -- cgit v1.2.3-70-g09d2