aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/gossip-account-chooser.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/gossip-account-chooser.c')
-rw-r--r--libempathy-gtk/gossip-account-chooser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy-gtk/gossip-account-chooser.c b/libempathy-gtk/gossip-account-chooser.c
index 9cb8e5d41..dfed1bb54 100644
--- a/libempathy-gtk/gossip-account-chooser.c
+++ b/libempathy-gtk/gossip-account-chooser.c
@@ -593,6 +593,9 @@ account_chooser_set_account_foreach (GtkTreeModel *model,
/* Special case so we can make it possible to select the All option */
if (!data->account && !account) {
equal = TRUE;
+ }
+ else if ((data->account && !account) || (!data->account && account)) {
+ equal = FALSE;
} else {
equal = gossip_account_equal (data->account, account);
g_object_unref (account);