Skip to content
Permalink
Browse files
[transfer-engine] Ensure group notification is published with the cor…
…rect 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.
  • Loading branch information
Bea Lam committed Oct 2, 2013
1 parent 5f442cd commit eed7c4babce6c0ff0cecfea3ccc213607d919648
Showing with 3 additions and 3 deletions.
  1. +3 −3 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);

0 comments on commit eed7c4b

Please sign in to comment.