[gnome-contacts] Avatar: Contact.individual is never null.



commit 08ffb5a0b65628204fe4d720fde1009a0c5e5f4e
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Wed Jan 24 00:46:33 2018 +0100

    Avatar: Contact.individual is never null.

 src/contacts-avatar.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-avatar.vala b/src/contacts-avatar.vala
index 521f566..48db68f 100644
--- a/src/contacts-avatar.vala
+++ b/src/contacts-avatar.vala
@@ -49,8 +49,7 @@ public class Contacts.Avatar : DrawingArea {
     set_size_request (size, size);
 
     // If we don't have an avatar, don't try to load it later
-    this.avatar_loaded = (contact == null || contact.individual == null
-                          || contact.individual.avatar == null);
+    this.avatar_loaded = (contact == null || contact.individual.avatar == null);
 
     show ();
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]