panel: Fix SIM Locked being shown when no sim is inserted

This commit is contained in:
Devin Lin 2021-12-05 17:39:08 -05:00
parent 9711d4af10
commit dca28b134d

View file

@ -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);
}