summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp6
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;