[empathy/gnome-2-34] display a debug message if we can't get the TpContact



commit ef9b1ef55e7041e7c9514e4d62cc63aba8f01c72
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Mar 8 18:18:59 2011 +0100

    display a debug message if we can't get the TpContact

 src/empathy-call-observer.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-call-observer.c b/src/empathy-call-observer.c
index c8f4f8e..a43e777 100644
--- a/src/empathy-call-observer.c
+++ b/src/empathy-call-observer.c
@@ -122,7 +122,10 @@ get_contact_cb (TpConnection *connection,
   GdkPixbuf *pixbuf;
 
   if (n_contacts != 1)
-    return;
+    {
+      DEBUG ("Failed to get TpContact; ignoring notification bubble");
+      return;
+    }
 
   contact = contacts[0];
 



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