on xenial help sign in
All test work again
commitafaf01288039359841843043c4463dbb32572a44 authorMirco Müller <mirco.mueller@canonical.com> dateFri 14 Jun 2013, 17:36 (13 years ago) parent10113e9
1 file changed+7−2
Notifications/Notification.qml+7−2
Notifications/Notification.qml+7−2
@@ -41,15 +41,20 @@ UbuntuShape {
4141
4242 Repeater {
4343 id: actionRepeater
44+
4445 model: notification.actions
46+
47+ delegate: Item {
48+ property string actionId: model.id
49+ }
4550 }
4651
4752 anchors.fill: contentColumn
4853 objectName: "interactiveArea"
4954 enabled: notification.type == Notification.Interactive
5055 onClicked: {
51− notification.notification.invokeAction(actionRepeater.model.get(0).id)
52− actionInvoked(actionRepeater.model.get(0).id)
56+ notification.notification.invokeAction(actionRepeater.itemAt(0).actionId)
57+ actionInvoked(actionRepeater.itemAt(0).actionId)
5358 }
5459 }
5560