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

mmplugin: Fix apn added request being true when no sim is inserted

parent 201ba695
Pipeline #230632 passed with stage
in 1 minute and 6 seconds
......@@ -75,7 +75,7 @@ bool SignalIndicator::mobileDataEnabled() const
bool SignalIndicator::needsAPNAdded() const
{
return m_nmModem && m_nmModem->availableConnections().count() == 0;
return m_nmModem && mobileDataSupported() && m_nmModem->availableConnections().count() == 0;
}
void SignalIndicator::setMobileDataEnabled(bool enabled)
......
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