summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/qt-ble.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp
index ece3bc6cf..cab7303cc 100644
--- a/core/qt-ble.cpp
+++ b/core/qt-ble.cpp
@@ -405,8 +405,10 @@ dc_status_t qt_ble_open(void **io, dc_context_t *, const char *devaddr, dc_user_
#endif
qDebug() << "qt_ble_open(" << devaddr << ")";
+#if !defined(Q_OS_WIN)
if (use_random_address(user_device))
controller->setRemoteAddressType(QLowEnergyController::RandomAddress);
+#endif
// Try to connect to the device
controller->connectToDevice();