From 2042a472303ab33f0fb8a6625d6e69e533dbce43 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 17 Mar 2020 10:20:42 -0700 Subject: mobile/cleanup: add some more log messages This will help understand the control flow in the log. Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 3989ffbcf..8ef135aa8 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -327,11 +327,12 @@ void QMLManager::applicationStateChanged(Qt::ApplicationState state) void QMLManager::openLocalThenRemote(QString url) { + // clear out the models and the fulltext index MobileModels::instance()->clear(); setNotificationText(tr("Open local dive data file")); - if (verbose) - appendTextToLog(QString("Open local dive data file %1").arg(url)); + appendTextToLog(QString("Open dive data file %1 - git_local only is %2").arg(url).arg(git_local_only)); QByteArray fileNamePrt = QFile::encodeName(url); + /* if this is a cloud storage repo and we have no local cache (i.e., it's the first time * we try to open this), parse_file will ALWAYS connect to the remote and populate the cache. * Otherwise parse_file will respect the git_local_only flag and only update if that isn't set */ @@ -494,6 +495,7 @@ QString QMLManager::getCombinedLogs() void QMLManager::finishSetup() { + appendTextToLog("finishSetup called"); // Initialize cloud credentials. git_local_only = !prefs.cloud_auto_sync; -- cgit v1.2.3-70-g09d2