From 77e92262fe8573970345bae799c707245b1fdd2e Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 9 Sep 2015 13:03:08 +0200 Subject: [PATCH] Fix build --- core/daemon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/daemon.cpp b/core/daemon.cpp index 99cff722d..8c44c72d9 100644 --- a/core/daemon.cpp +++ b/core/daemon.cpp @@ -165,7 +165,7 @@ void Daemon::onNewDeviceLink(const NetworkPackage& identityPackage, DeviceLink* //we discard the connections that we created but it's not paired. //we keep the remotely initiated ones, since the remotes require them - if (!isDiscoveringDevices() && !device->isPaired() && dl->connectionSource() == DeviceLink::ConnectionStarted::Locally) { + if (!isDiscoveryEnabled() && !device->isPaired() && dl->connectionSource() == DeviceLink::ConnectionStarted::Locally) { dl->deleteLater(); } else { connect(device, SIGNAL(reachableStatusChanged()), this, SLOT(onDeviceStatusChanged()));