notificationDaemon: Pass the correct id to makeButton()

The function expects the action's ID, not the notification's one.

https://bugzilla.gnome.org/show_bug.cgi?id=710596
This commit is contained in:
Florian Müllner 2013-10-22 02:03:10 +02:00
parent 4b09d57ec2
commit 61c5b8e7d2

View File

@ -436,7 +436,7 @@ const FdoNotificationDaemon = new Lang.Class({
if (actionId == 'default') {
hasDefaultAction = true;
} else {
notification.addButton(this._makeButton(id, label, useActionIcons), Lang.bind(this, function() {
notification.addButton(this._makeButton(actionId, label, useActionIcons), Lang.bind(this, function() {
this._emitActionInvoked(ndata.id, actionId);
}));
}