summaryrefslogtreecommitdiff
path: root/metawatch/metawatch.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-07 01:37:21 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-07 01:37:21 +0200
commit6003bf81107dd9be51589c074b74c5af82bfc8ab (patch)
tree502193634979c12b45c2a013668d21556e2c7050 /metawatch/metawatch.cpp
parentae37832316d905889c82706b351b3c037c9e1ab6 (diff)
downloadsowatch-6003bf81107dd9be51589c074b74c5af82bfc8ab.tar.gz
sowatch-6003bf81107dd9be51589c074b74c5af82bfc8ab.zip
testing qml notifications
Diffstat (limited to 'metawatch/metawatch.cpp')
-rw-r--r--metawatch/metawatch.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/metawatch/metawatch.cpp b/metawatch/metawatch.cpp
index 01dec25..782e47f 100644
--- a/metawatch/metawatch.cpp
+++ b/metawatch/metawatch.cpp
@@ -125,7 +125,8 @@ MetaWatch::MetaWatch(ConfigKey* settings, QObject* parent) :
connect(_localDev, SIGNAL(hostModeStateChanged(QBluetoothLocalDevice::HostMode)), SLOT(localDevModeChanged(QBluetoothLocalDevice::HostMode)));
// Check to see if we can connect right away
- if (_localDev->hostMode() != QBluetoothLocalDevice::HostPoweredOff) {
+ if (_localDev->isValid() &&
+ _localDev->hostMode() != QBluetoothLocalDevice::HostPoweredOff) {
// Do an initial connection attempt after a short delay
// (To give time for other plugins to initialize, etc.)
scheduleConnect();