mmplugin: Fix SIM being reported as locked when no sim is inserted

This commit is contained in:
Devin Lin 2022-02-10 22:13:25 -05:00
parent 9cf37ea66c
commit 5660a9e016

View file

@ -28,7 +28,7 @@ bool SignalIndicator::simLocked() const
if (!m_modem) {
return false;
}
return !(m_modem->unlockRequired() == MM_MODEM_LOCK_NONE || m_modem->unlockRequired() == MM_MODEM_LOCK_SIM_PIN2);
return m_modem->unlockRequired() == MM_MODEM_LOCK_SIM_PIN;
}
bool SignalIndicator::available() const