mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-01 09:18:07 +00:00
panel: Fix SIM Locked being shown when no sim is inserted
This commit is contained in:
parent
9711d4af10
commit
dca28b134d
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ QString SignalIndicator::name() const
|
||||||
bool SignalIndicator::simLocked() const
|
bool SignalIndicator::simLocked() const
|
||||||
{
|
{
|
||||||
if (!m_modem) {
|
if (!m_modem) {
|
||||||
return true;
|
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_NONE || m_modem->unlockRequired() == MM_MODEM_LOCK_SIM_PIN2);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue