aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-account-chooser.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-04-20 16:29:02 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-09 18:37:55 +0800
commit04d3b8f34e0cab394ac143b9323bd3d00a8abee7 (patch)
treeeab2205faf5a879f09179f96485f76d60e01a6c1 /libempathy-gtk/empathy-account-chooser.c
parent2269bb1dbf55130f4ba625777dbbebc6407f9ce7 (diff)
downloadgsoc2013-empathy-04d3b8f34e0cab394ac143b9323bd3d00a8abee7.tar
gsoc2013-empathy-04d3b8f34e0cab394ac143b9323bd3d00a8abee7.tar.gz
gsoc2013-empathy-04d3b8f34e0cab394ac143b9323bd3d00a8abee7.tar.bz2
gsoc2013-empathy-04d3b8f34e0cab394ac143b9323bd3d00a8abee7.tar.lz
gsoc2013-empathy-04d3b8f34e0cab394ac143b9323bd3d00a8abee7.tar.xz
gsoc2013-empathy-04d3b8f34e0cab394ac143b9323bd3d00a8abee7.tar.zst
gsoc2013-empathy-04d3b8f34e0cab394ac143b9323bd3d00a8abee7.zip
account_chooser_find_account_foreach: check the col type
As non ROW_ACCOUNT rows don't have an account.
Diffstat (limited to 'libempathy-gtk/empathy-account-chooser.c')
-rw-r--r--libempathy-gtk/empathy-account-chooser.c9
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;