From dca28b134d198ff35b318c325610eefefb1245ab Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sun, 5 Dec 2021 17:39:08 -0500 Subject: [PATCH] panel: Fix SIM Locked being shown when no sim is inserted --- mmplugin/signalindicator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmplugin/signalindicator.cpp b/mmplugin/signalindicator.cpp index e3398860..bb510f09 100644 --- a/mmplugin/signalindicator.cpp +++ b/mmplugin/signalindicator.cpp @@ -26,7 +26,7 @@ QString SignalIndicator::name() const bool SignalIndicator::simLocked() const { if (!m_modem) { - return true; + return false; } return !(m_modem->unlockRequired() == MM_MODEM_LOCK_NONE || m_modem->unlockRequired() == MM_MODEM_LOCK_SIM_PIN2); }