[libnotificationmanager] Bail out early when trying to find KService for empty desktop entry

If desktopEntry is empty we have no chance of finding a service for it, so don't bother
wilder-5.25
Nicolas Fella 4 years ago committed by Merge Service
parent 35371a7d19
commit e18c2b1ba8
  1. 4
      libnotificationmanager/notification.cpp

@ -246,6 +246,10 @@ QSize Notification::Private::maximumImageSize()
KService::Ptr Notification::Private::serviceForDesktopEntry(const QString &desktopEntry)
{
if (desktopEntry.isEmpty()) {
return {};
}
KService::Ptr service;
if (desktopEntry.startsWith(QLatin1Char('/'))) {

Loading…
Cancel
Save