Fixed too early assignment
This commit is contained in:
parent
e59b94f03d
commit
402564733f
1 changed files with 2 additions and 2 deletions
|
@ -316,8 +316,6 @@ void Device::privateReceivedPackage(const NetworkPackage& np)
|
||||||
|
|
||||||
qDebug() << "Unpair request";
|
qDebug() << "Unpair request";
|
||||||
|
|
||||||
m_pairStatus = Device::NotPaired;
|
|
||||||
|
|
||||||
if (m_pairStatus == PairRequested) {
|
if (m_pairStatus == PairRequested) {
|
||||||
pairingTimer.stop();
|
pairingTimer.stop();
|
||||||
Q_EMIT pairingFailed(i18n("Canceled by other peer"));
|
Q_EMIT pairingFailed(i18n("Canceled by other peer"));
|
||||||
|
@ -327,6 +325,8 @@ void Device::privateReceivedPackage(const NetworkPackage& np)
|
||||||
reloadPlugins();
|
reloadPlugins();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pairStatus = Device::NotPaired;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (!isPaired()) {
|
} else if (!isPaired()) {
|
||||||
|
|
Loading…
Reference in a new issue