[empathy] We already know that this contact is a FolksIndividual if it isn't NULL, so simplify the conditional
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] We already know that this contact is a FolksIndividual if it isn't NULL, so simplify the conditional
- Date: Tue, 20 Jul 2010 23:24:38 +0000 (UTC)
commit d392ae0a2fd82c9ae39a0f9594f7cdd8ed3b4411
Author: Travis Reitter <treitter gmail com>
Date: Fri Jul 9 13:34:20 2010 -0700
We already know that this contact is a FolksIndividual if it isn't NULL, so simplify the conditional.
libempathy-gtk/empathy-individual-dialogs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-dialogs.c b/libempathy-gtk/empathy-individual-dialogs.c
index 88ac09b..cd5c0f3 100644
--- a/libempathy-gtk/empathy-individual-dialogs.c
+++ b/libempathy-gtk/empathy-individual-dialogs.c
@@ -125,7 +125,7 @@ empathy_new_individual_dialog_show_with_individual (GtkWindow *parent,
gtk_widget_show (button);
/* Contact info widget */
- if (FOLKS_IS_INDIVIDUAL (individual))
+ if (individual != NULL)
contact = empathy_contact_dup_from_folks_individual (individual);
contact_widget = empathy_contact_widget_new (contact,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]