Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
Network Management
Commits
e4b705b7
Commit
e4b705b7
authored
Jan 01, 2013
by
Jan Grulich
Browse files
Use comparison with localized string
BUG:312414
parent
ca15c1d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
applet/connectionslistmodel.cpp
View file @
e4b705b7
...
@@ -332,11 +332,11 @@ QModelIndex ConnectionsListModel::indexFromItem(const ConnectionItem *item) cons
...
@@ -332,11 +332,11 @@ QModelIndex ConnectionsListModel::indexFromItem(const ConnectionItem *item) cons
void
ConnectionsListModel
::
setFilter
(
QVariant
tabName
)
void
ConnectionsListModel
::
setFilter
(
QVariant
tabName
)
{
{
if
(
tabName
==
"Connections"
)
{
if
(
tabName
==
i18n
(
"Connections"
)
)
{
currentFilter
=
NormalConnections
;
currentFilter
=
NormalConnections
;
}
else
if
(
tabName
==
"VPN"
)
{
}
else
if
(
tabName
==
i18n
(
"VPN"
)
)
{
currentFilter
=
VpnConnections
;
currentFilter
=
VpnConnections
;
}
else
if
(
tabName
==
"Shared Connections"
)
{
}
else
if
(
tabName
==
i18n
(
"Shared Connections"
)
)
{
currentFilter
=
SharedConnections
;
currentFilter
=
SharedConnections
;
}
}
...
...
Write
Preview
Supports
Markdown
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