From e1efa031322810cf2afcf7b3cd01f342015f6336 Mon Sep 17 00:00:00 2001 From: Pekka Vuorela Date: Tue, 27 Mar 2018 16:30:57 +0300 Subject: [PATCH] Fix notification icon not getting set Almost got there by earlier progress changes. --- src/transferengine.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/transferengine.cpp b/src/transferengine.cpp index fa6d97d..19c9a0a 100644 --- a/src/transferengine.cpp +++ b/src/transferengine.cpp @@ -335,7 +335,7 @@ void TransferEnginePrivate::sendNotification(TransferEngineData::TransferType ty bool useProgress = false; Notification::Urgency urgency = Notification::Normal; QString appIcon = QStringLiteral("icon-lock-information"); - QString icon = QStringLiteral("x-nemo-icon=icon-lock-transfer"); + QString icon = QStringLiteral("icon-lock-transfer"); // TODO: explicit grouping of transfer notifications is now removed, as grouping // will now be performed by lipstick. We may need to reinstate group summary @@ -467,6 +467,10 @@ void TransferEnginePrivate::sendNotification(TransferEngineData::TransferType ty notification.setPreviewBody(previewBody); notification.setUrgency(urgency); + if (!icon.isEmpty()) { + notification.setIcon(icon); + } + if (useProgress) { notification.setHintValue(TRANSFER_PROGRESS_HINT, static_cast(progress)); }