Commit e18c2b1b authored by Nicolas Fella's avatar Nicolas Fella Committed by Merge Service
Browse files

[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
parent 35371a7d
Pipeline #154588 passed with stage
in 12 minutes and 24 seconds
......@@ -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('/'))) {
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