From d2fc0036171971ab369cbf9924dbc509de21e998 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 1 Nov 2020 01:48:28 -0400 Subject: [PATCH] Ignore changes for now deleted push rules on save --- src/gui/Pages/AccountSettings/Notifications.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/Pages/AccountSettings/Notifications.qml b/src/gui/Pages/AccountSettings/Notifications.qml index c99195b1..fe6e85bf 100644 --- a/src/gui/Pages/AccountSettings/Notifications.qml +++ b/src/gui/Pages/AccountSettings/Notifications.qml @@ -28,6 +28,8 @@ HListView { const args = [] for (const [modelId, kwargs] of Object.entries(pendingEdits)) { + if (! model.find(modelId)) continue // pushrule was deleted + const [kind, rule_id] = JSON.parse(modelId) args.push(Object.assign({}, {kind, rule_id}, kwargs)) }