Dominique Leuenberger
c0019fcea5
OBS-URL: https://build.opensuse.org/request/show/922812 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-contacts?expand=0&rev=141
28 lines
842 B
Diff
28 lines
842 B
Diff
From 6883d4fa2a1b3803896a5f5737df765d8f6f6f62 Mon Sep 17 00:00:00 2001
|
|
From: Krifa75 <yahiaoui.fakhri@gmail.com>
|
|
Date: Wed, 22 Sep 2021 23:31:35 +0200
|
|
Subject: [PATCH] contacts-store: Check if new individual is not empty
|
|
|
|
When deleting a contact the changes may contains empty value which triggers a warning when deleting one
|
|
---
|
|
src/contacts-store.vala | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/contacts-store.vala b/src/contacts-store.vala
|
|
index a9c6a57b..91e99e5a 100644
|
|
--- a/src/contacts-store.vala
|
|
+++ b/src/contacts-store.vala
|
|
@@ -144,7 +144,8 @@ public class Contacts.Store : GLib.Object {
|
|
if (i != null)
|
|
to_remove.add (i);
|
|
foreach (var new_i in changes[i]) {
|
|
- to_add.add (new_i);
|
|
+ if (new_i != null)
|
|
+ to_add.add (new_i);
|
|
}
|
|
}
|
|
|
|
--
|
|
GitLab
|
|
|