Fixed too early assignment

This commit is contained in:
Albert Vaca 2013-09-03 19:14:33 +02:00
parent e59b94f03d
commit 402564733f

View file

@ -316,8 +316,6 @@ void Device::privateReceivedPackage(const NetworkPackage& np)
qDebug() << "Unpair request";
m_pairStatus = Device::NotPaired;
if (m_pairStatus == PairRequested) {
pairingTimer.stop();
Q_EMIT pairingFailed(i18n("Canceled by other peer"));
@ -327,6 +325,8 @@ void Device::privateReceivedPackage(const NetworkPackage& np)
reloadPlugins();
}
m_pairStatus = Device::NotPaired;
}
} else if (!isPaired()) {