diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-04-20 16:29:02 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-04-20 23:14:27 +0800 |
commit | 66da84405ae78173da6373228f6ec438d447882a (patch) | |
tree | 8c26e541e0b8793aec3b8e647d69341fbe8e697f /libempathy-gtk | |
parent | 70a003ec2daaa86635fefb2da16e5fe04e6ff064 (diff) | |
download | gsoc2013-empathy-66da84405ae78173da6373228f6ec438d447882a.tar gsoc2013-empathy-66da84405ae78173da6373228f6ec438d447882a.tar.gz gsoc2013-empathy-66da84405ae78173da6373228f6ec438d447882a.tar.bz2 gsoc2013-empathy-66da84405ae78173da6373228f6ec438d447882a.tar.lz gsoc2013-empathy-66da84405ae78173da6373228f6ec438d447882a.tar.xz gsoc2013-empathy-66da84405ae78173da6373228f6ec438d447882a.tar.zst gsoc2013-empathy-66da84405ae78173da6373228f6ec438d447882a.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')
-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 6e1361f8e..afb9841e1 100644 --- a/libempathy-gtk/empathy-account-chooser.c +++ b/libempathy-gtk/empathy-account-chooser.c @@ -700,8 +700,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; |