diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-03-17 10:20:42 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-17 16:49:53 -0700 |
commit | 2042a472303ab33f0fb8a6625d6e69e533dbce43 (patch) | |
tree | aa7fe42ba61d37bcd15d00bff8dc58a17603348a | |
parent | 8e7711c054fc7e0fa9eb5c5a0db1211765c57f6b (diff) | |
download | subsurface-2042a472303ab33f0fb8a6625d6e69e533dbce43.tar.gz |
mobile/cleanup: add some more log messages
This will help understand the control flow in the log.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 6 |
1 files 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; |