[Notifications] Group applications with same display name but no desktop entry

The specification says appName should be the display name of the application.
An application may not send a desktop name at which point we have no other way of identifying it
than the user-visible name it provides us.

Differential Revision: https://phabricator.kde.org/D21460
wilder-5.19
Kai Uwe Broulik 7 years ago
parent 143969f24f
commit 08b027f112
  1. 2
      libnotificationmanager/notificationgroupingproxymodel.cpp

@ -44,7 +44,7 @@ bool NotificationGroupingProxyModel::appsMatch(const QModelIndex &a, const QMode
const QString bDesktopEntry = b.data(Notifications::DesktopEntryRole).toString();
return !aName.isEmpty() && aName == bName
&& !aDesktopEntry.isEmpty() && aDesktopEntry == bDesktopEntry;
&& aDesktopEntry == bDesktopEntry;
}
bool NotificationGroupingProxyModel::isGroup(int row) const

Loading…
Cancel
Save