From 5660a9e016fae819a63962d6d464822762d5c16e Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Thu, 10 Feb 2022 22:13:25 -0500 Subject: [PATCH] mmplugin: Fix SIM being reported as locked when no sim is inserted --- components/mmplugin/signalindicator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mmplugin/signalindicator.cpp b/components/mmplugin/signalindicator.cpp index bb510f09..a3baf80a 100644 --- a/components/mmplugin/signalindicator.cpp +++ b/components/mmplugin/signalindicator.cpp @@ -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