Fix build

This commit is contained in:
Aleix Pol 2015-09-09 13:03:08 +02:00
parent 26b0ec8b98
commit 77e92262fe

View file

@ -165,7 +165,7 @@ void Daemon::onNewDeviceLink(const NetworkPackage& identityPackage, DeviceLink*
//we discard the connections that we created but it's not paired. //we discard the connections that we created but it's not paired.
//we keep the remotely initiated ones, since the remotes require them //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(); dl->deleteLater();
} else { } else {
connect(device, SIGNAL(reachableStatusChanged()), this, SLOT(onDeviceStatusChanged())); connect(device, SIGNAL(reachableStatusChanged()), this, SLOT(onDeviceStatusChanged()));