Fix warning because of missing enum value in switch

This commit is contained in:
Albert Vaca 2017-02-18 15:32:55 +01:00
parent 2c1c8525e5
commit 1b308a547d

View file

@ -71,16 +71,13 @@ void LanPairingHandler::packageReceived(const NetworkPackage& np)
bool LanPairingHandler::requestPairing()
{
switch (m_status) {
case Paired:
Q_EMIT pairingError(i18n("%1: Already paired", deviceLink()->name()));
return false;
case RequestedByPeer:
qCDebug(KDECONNECT_CORE) << deviceLink()->name() << " : Pairing already started by the other end, accepting their request.";
acceptPairing();
return false;
case NotPaired:
;
if (m_status == Paired) {
Q_EMIT pairingError(i18n("%1: Already paired", deviceLink()->name()));
return false;
}
if (m_status == RequestedByPeer) {
qCDebug(KDECONNECT_CORE) << deviceLink()->name() << ": Pairing already started by the other end, accepting their request.";
return acceptPairing();
}
NetworkPackage np(PACKAGE_TYPE_PAIR, {{"pair", true}});