Do not error if we try to request pair again

This commit is contained in:
Albert Vaca 2017-02-10 00:54:03 +01:00
parent 5f0173f469
commit f0a96a3ab9

View file

@ -75,9 +75,6 @@ bool LanPairingHandler::requestPairing()
case Paired: case Paired:
Q_EMIT pairingError(i18n("%1: Already paired", deviceLink()->name())); Q_EMIT pairingError(i18n("%1: Already paired", deviceLink()->name()));
return false; return false;
case Requested:
Q_EMIT pairingError(i18n("%1: Pairing already requested for this device", deviceLink()->name()));
return false;
case RequestedByPeer: case RequestedByPeer:
qCDebug(KDECONNECT_CORE) << deviceLink()->name() << " : Pairing already started by the other end, accepting their request."; qCDebug(KDECONNECT_CORE) << deviceLink()->name() << " : Pairing already started by the other end, accepting their request.";
acceptPairing(); acceptPairing();