Commit e4b705b7 authored by Jan Grulich's avatar Jan Grulich
Browse files

Use comparison with localized string

BUG:312414
parent ca15c1d0
...@@ -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;
} }
......
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