diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2016-08-08 09:29:30 +0200 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@qt.io> | 2016-08-09 06:57:42 +0000 |
commit | 511bd934b7a9ad17bf81d6fe9325c41732cae9ee (patch) | |
tree | ed529090a7a65e2a94ba782d64ecad011033eb02 /src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp | |
parent | 70bb2f8d1fc45738859e1b4b1127db5c0de6cec9 (diff) |
winrt: Start device watcher
If the device watcher is not started, it cannot be
stopped and an originate error will occur.
Change-Id: Ia387cf8ada93d34bee9dcea142492cd2fa650249
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Diffstat (limited to 'src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp index 5f24f150..c8e42a33 100644 --- a/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp +++ b/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp @@ -308,6 +308,8 @@ private: }); hr = leDeviceWatcher->add_Added(deviceAddedCallback.Get(), &leDeviceAddedToken); WARN_AND_RETURN_IF_FAILED("Could not add \"device added\" callback", return); + hr = leDeviceWatcher->Start(); + WARN_AND_RETURN_IF_FAILED("Could not start device watcher", return); } public slots: |