From c9c9a8390a9a4187e2b7155539fb5cd1968c10c8 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 6 Jul 2017 06:34:16 -0700 Subject: 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 --- mobile-widgets/qmlmanager.cpp | 11 ++++++----- 1 file 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::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); -- cgit v1.2.3-70-g09d2