[Notifications] Print warning about missing identification only if both are missing

wilder-5.17
Kai Uwe Broulik 7 years ago
parent 0ed653ba75
commit 0e1ac739fd
  1. 5
      libnotificationmanager/server_p.cpp

@ -160,8 +160,9 @@ uint ServerPrivate::Notify(const QString &app_name, uint replaces_id, const QStr
uint pid = 0;
if (notification.desktopEntry().isEmpty() || notification.applicationName().isEmpty()) {
qCInfo(NOTIFICATIONMANAGER) << "Notification from service" << message().service() << "didn't contain any identification information, this is an application bug!";
if (notification.desktopEntry().isEmpty() && notification.applicationName().isEmpty()) {
qCInfo(NOTIFICATIONMANAGER) << "Notification from service" << message().service() << "didn't contain any identification information, this is an application bug!";
}
QDBusReply<uint> pidReply = connection().interface()->servicePid(message().service());
if (pidReply.isValid()) {
pid = pidReply.value();

Loading…
Cancel
Save