Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Plasma applet for NetworkManager
Commits
3412d7b3
Commit
3412d7b3
authored
Sep 18, 2017
by
Jan Grulich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
It makes sense to show VPN connections only when we are connected to internet
parent
93adbdee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
libs/models/networkmodelitem.cpp
libs/models/networkmodelitem.cpp
+1
-3
No files found.
libs/models/networkmodelitem.cpp
View file @
3412d7b3
...
...
@@ -263,9 +263,7 @@ NetworkModelItem::ItemType NetworkModelItem::itemType() const
#if NM_CHECK_VERSION(0, 9, 10)
m_type
==
NetworkManager
::
ConnectionSettings
::
Team
||
#endif
((
NetworkManager
::
status
()
==
NetworkManager
::
Connected
||
NetworkManager
::
status
()
==
NetworkManager
::
ConnectedLinkLocal
||
NetworkManager
::
status
()
==
NetworkManager
::
ConnectedSiteOnly
)
&&
m_type
==
NetworkManager
::
ConnectionSettings
::
Vpn
))
{
(
NetworkManager
::
status
()
==
NetworkManager
::
Connected
&&
m_type
==
NetworkManager
::
ConnectionSettings
::
Vpn
))
{
if
(
m_connectionPath
.
isEmpty
()
&&
m_type
==
NetworkManager
::
ConnectionSettings
::
Wireless
)
{
return
NetworkModelItem
::
AvailableAccessPoint
;
}
else
if
(
m_connectionPath
.
isEmpty
()
&&
m_type
==
NetworkManager
::
ConnectionSettings
::
Wimax
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment