Commit 2a3313b7 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Microphone Indicator] Avoid duplicate application names

Differential Revision: https://phabricator.kde.org/D21114
parent c6c6072c
......@@ -280,10 +280,9 @@ QStringList MicrophoneIndicator::appNames() const
Client *client = qobject_cast<Client *>(idx.data(s_clientRole).value<QObject *>());
if (client) {
names.append(client->name());
} else {
names.append(idx.data(s_nameRole).toString());
const QString name = client ? client->name() : idx.data(s_nameRole).toString();
if (!names.contains(name)) {
names.append(name);
}
}
......
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