diff options
Diffstat (limited to 'libempathy-gtk/empathy-account-chooser.c')
-rw-r--r-- | libempathy-gtk/empathy-account-chooser.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c index f91ae2320..bfacbd1d9 100644 --- a/libempathy-gtk/empathy-account-chooser.c +++ b/libempathy-gtk/empathy-account-chooser.c @@ -721,8 +721,15 @@ account_chooser_find_account_foreach (GtkTreeModel *model, { FindAccountData *data = user_data; TpAccount *account; + RowType type; - gtk_tree_model_get (model, iter, COL_ACCOUNT_POINTER, &account, -1); + gtk_tree_model_get (model, iter, + COL_ACCOUNT_POINTER, &account, + COL_ACCOUNT_ROW_TYPE, &type, + -1); + + if (type != ROW_ACCOUNT) + return FALSE; if (account == data->account) { data->found = TRUE; |