aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-06 06:34:16 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-06 09:34:37 -0700
commitc9c9a8390a9a4187e2b7155539fb5cd1968c10c8 (patch)
tree9f8e4cba480a561563390981c3a51fa4365cef02 /mobile-widgets
parentce21c2a69626398591a592461ea09c36983e3e79 (diff)
downloadsubsurface-c9c9a8390a9a4187e2b7155539fb5cd1968c10c8.tar.gz
QML UI: start BT discovery a tiny bit later
This way the AppLog starts with the name and version of Subsurface-mobile. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qmlmanager.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 4e7310407..5aa0451f8 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -78,17 +78,18 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
alreadySaving(false),
m_device_data(new DCDeviceData(this))
{
-#if defined(BT_SUPPORT)
- // ensure that we start the BTDiscovery - this should be triggered by the export of the class
- // to QML, but that doesn't seem to always work
- BTDiscovery *btDiscovery = BTDiscovery::instance();
-#endif
m_instance = this;
m_lastDevicePixelRatio = qApp->devicePixelRatio();
connect(qobject_cast<QApplication *>(QApplication::instance()), &QApplication::applicationStateChanged, this, &QMLManager::applicationStateChanged);
appendTextToLog("Starting " + getUserAgent());
appendTextToLog(QStringLiteral("build with Qt Version %1, runtime from Qt Version %2").arg(QT_VERSION_STR).arg(qVersion()));
setStartPageText(tr("Starting..."));
+
+#if defined(BT_SUPPORT)
+ // ensure that we start the BTDiscovery - this should be triggered by the export of the class
+ // to QML, but that doesn't seem to always work
+ BTDiscovery *btDiscovery = BTDiscovery::instance();
+#endif
setShowPin(false);
// create location manager service
locationProvider = new GpsLocation(&appendTextToLogStandalone, this);