Commit cfa7fa4f authored by Devin Lin's avatar Devin Lin 🎨
Browse files

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

parent 62b6739d
Pipeline #135984 passed with stage
in 51 seconds
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment