From eed7c4babce6c0ff0cecfea3ccc213607d919648 Mon Sep 17 00:00:00 2001 From: Bea Lam Date: Wed, 2 Oct 2013 18:17:48 +1000 Subject: [PATCH] [transfer-engine] Ensure group notification is published with the correct preview body. MNotificationGroup::publish() sets its x-nemo-preview-body field using the preview body of the last added notification group. This means if the group is published before the notification, the preview body used will be that of the last published notification group instead of the current one. If the group is published after the notification instead, the notification will ensure the group properties are set correctly before the group is published. --- src/transferengine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/transferengine.cpp b/src/transferengine.cpp index 7fb0233..f77cdb1 100644 --- a/src/transferengine.cpp +++ b/src/transferengine.cpp @@ -412,12 +412,12 @@ void TransferEnginePrivate::sendNotification(TransferEngineData::TransferType ty group->setAction(rAct); } - // always publish the group to make updates appear - group->publish(); - notification.setGroup(*group); notification.publish(); + // always publish the group to make updates appear + group->publish(); + // Cleanup if (groups.count()) { qDeleteAll(groups); -- 2.23.0