diff --git a/src/knotificationmanager.cpp b/src/knotificationmanager.cpp --- a/src/knotificationmanager.cpp +++ b/src/knotificationmanager.cpp @@ -277,6 +277,10 @@ KNotifyConfig notifyConfig(n->appName(), n->contexts(), n->eventId()); QString notifyActions = notifyConfig.readEntry(QStringLiteral("Action")); + if (notifyActions.isEmpty()) { + notifyActions = QStringLiteral("Popup"); + } + const auto listActions = notifyActions.split(QLatin1Char('|')); for (const QString &action : listActions) { if (!d->notifyPlugins.contains(action)) { @@ -298,9 +302,13 @@ d->dirtyConfigCache.removeOne(n->appName()); } - const QString notifyActions = notifyConfig.readEntry(QStringLiteral("Action")); + QString notifyActions = notifyConfig.readEntry(QStringLiteral("Action")); + + if (notifyActions.isEmpty()) { + notifyActions = QStringLiteral("Popup"); + } - if (notifyActions.isEmpty() || notifyActions == QLatin1String("None")) { + if (notifyActions == QLatin1String("None")) { // this will cause KNotification closing itself fast n->ref(); n->deref(); diff --git a/src/notifybypopup.cpp b/src/notifybypopup.cpp --- a/src/notifybypopup.cpp +++ b/src/notifybypopup.cpp @@ -264,7 +264,7 @@ void NotifyByPopupPrivate::getAppCaptionAndIconName(const KNotifyConfig ¬ifyConfig, QString *appCaption, QString *iconName) { KConfigGroup globalgroup(&(*notifyConfig.eventsfile), QStringLiteral("Global")); - *appCaption = globalgroup.readEntry("Name", globalgroup.readEntry("Comment", notifyConfig.appname)); + *appCaption = globalgroup.readEntry("Name", QGuiApplication::applicationDisplayName()); KConfigGroup eventGroup(&(*notifyConfig.eventsfile), QStringLiteral("Event/%1").arg(notifyConfig.eventid)); if (eventGroup.hasKey("IconName")) {