perform the "reject" action unconditionally
the real model doesn't have a "count" property, unlike the mock model, grmbl...
commit4ea89d842a3c1a20792e293c65cf1f0838c09464
authorLukáš Tinkl <lukas.tinkl@canonical.com>
dateMon 16 May 2016, 16:04 (10 years ago)
parent2ed301a
qml/Notifications/Notification.qml+3−3
@@ -103,9 +103,9 @@ StyledItem {
103103 ListView.view.currentIndex = -1;
104104 }
105105
106− if (notification.actions.count > 1) { // perform the "reject" action
107− notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId));
108− }
106+ // perform the "reject" action
107+ notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId));
108+
109109 notification.notification.close();
110110 }
111111