aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-07-10 04:34:20 +0800
committerTravis Reitter <treitter@gmail.com>2010-07-21 07:12:37 +0800
commitd392ae0a2fd82c9ae39a0f9594f7cdd8ed3b4411 (patch)
tree3ff34535b3cff66c3a2147d78c597d652d0f2fee /libempathy-gtk
parentb94698cb3423f9852dbf2347773ab22598df1136 (diff)
downloadgsoc2013-empathy-d392ae0a2fd82c9ae39a0f9594f7cdd8ed3b4411.tar
gsoc2013-empathy-d392ae0a2fd82c9ae39a0f9594f7cdd8ed3b4411.tar.gz
gsoc2013-empathy-d392ae0a2fd82c9ae39a0f9594f7cdd8ed3b4411.tar.bz2
gsoc2013-empathy-d392ae0a2fd82c9ae39a0f9594f7cdd8ed3b4411.tar.lz
gsoc2013-empathy-d392ae0a2fd82c9ae39a0f9594f7cdd8ed3b4411.tar.xz
gsoc2013-empathy-d392ae0a2fd82c9ae39a0f9594f7cdd8ed3b4411.tar.zst
gsoc2013-empathy-d392ae0a2fd82c9ae39a0f9594f7cdd8ed3b4411.zip
We already know that this contact is a FolksIndividual if it isn't NULL, so simplify the conditional.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-individual-dialogs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-individual-dialogs.c b/libempathy-gtk/empathy-individual-dialogs.c
index 88ac09bd3..cd5c0f3cd 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,