Commit eed7c4ba authored by blam's avatar blam

[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.
parent 5f442cdd
...@@ -412,12 +412,12 @@ void TransferEnginePrivate::sendNotification(TransferEngineData::TransferType ty ...@@ -412,12 +412,12 @@ void TransferEnginePrivate::sendNotification(TransferEngineData::TransferType ty
group->setAction(rAct); group->setAction(rAct);
} }
// always publish the group to make updates appear
notification.setGroup(*group); notification.setGroup(*group);
notification.publish(); notification.publish();
// always publish the group to make updates appear
// Cleanup // Cleanup
if (groups.count()) { if (groups.count()) {
qDeleteAll(groups); qDeleteAll(groups);
Markdown is supported
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