Commit 9a3febeb authored by Jan Grulich's avatar Jan Grulich
Browse files

Fix ampersand and other characters in tooltip

BUG:398225
parent a71ca963
......@@ -203,11 +203,10 @@ void NetworkStatus::changeActiveConnections()
}
NetworkManager::Connection::Ptr connection = active->connection();
const QString connectionName = connection->name().replace('&', "&amp;").replace('<', "&lt;").replace('>', "&gt;");
if (connecting) {
status = i18n("Connecting to %1", connectionName);
status = i18n("Connecting to %1", connection->name());
} else if (connected) {
status = i18n("Connected to %1", connectionName);
status = i18n("Connected to %1", connection->name());
}
if (!activeConnections.isEmpty()) {
......
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