[folks] eds: Remove duplicate change checks from Edsf.Persona.change_avatar()



commit f619fd7c1c30deef7401a427f69f98666a439dcc
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Sep 17 18:37:22 2011 +0100

    eds: Remove duplicate change checks from Edsf.Persona.change_avatar()
    
    Helps: bgo#658328

 backends/eds/lib/edsf-persona.vala |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/backends/eds/lib/edsf-persona.vala b/backends/eds/lib/edsf-persona.vala
index 207f6d8..f7aa0ce 100644
--- a/backends/eds/lib/edsf-persona.vala
+++ b/backends/eds/lib/edsf-persona.vala
@@ -315,11 +315,7 @@ public class Edsf.Persona : Folks.Persona,
    */
   public async void change_avatar (LoadableIcon? avatar) throws PropertyError
     {
-      if (this._avatar == null ||
-          !this._avatar.equal (avatar))
-        {
-          yield ((Edsf.PersonaStore) this.store)._set_avatar (this, avatar);
-        }
+      yield ((Edsf.PersonaStore) this.store)._set_avatar (this, avatar);
     }
 
   private StructuredName? _structured_name = null;



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