Commit 9e345849 authored by Jan Grulich's avatar Jan Grulich

Show VPN connections even with a limited connection

User might be behind proxy, resulting that NM detects we have limited connection

BUG:388273
parent 848d4d65
......@@ -245,7 +245,9 @@ NetworkModelItem::ItemType NetworkModelItem::itemType() const
#if NM_CHECK_VERSION(0, 9, 10)
m_type == NetworkManager::ConnectionSettings::Team ||
#endif
(NetworkManager::status() == NetworkManager::Connected && m_type == NetworkManager::ConnectionSettings::Vpn)) {
((NetworkManager::status() == NetworkManager::Connected ||
NetworkManager::status() == NetworkManager::ConnectedLinkLocal ||
NetworkManager::status() == NetworkManager::ConnectedSiteOnly) && m_type == NetworkManager::ConnectionSettings::Vpn)) {
if (m_connectionPath.isEmpty() && m_type == NetworkManager::ConnectionSettings::Wireless) {
return NetworkModelItem::AvailableAccessPoint;
} else {
......
Markdown is supported
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