summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-05-17 15:34:08 +0100
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-05-18 10:09:00 +0100
commit91d9f43ff5feb6380a2c673da115763cfe90834e (patch)
tree2caf57a4b1341e2f3e5fe91e28c3207ab3c96a22
parent5bacee9160d693ce0bd2abebacf86293a95d9c55 (diff)
downloadempathy-91d9f43ff5feb6380a2c673da115763cfe90834e.tar.gz
log_window_chats_set_selected: only act on normal rows
-rw-r--r--libempathy-gtk/empathy-log-window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 9b094652d..30d8ba732 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -2020,12 +2020,17 @@ log_window_chats_set_selected (EmpathyLogWindow *window)
TplEntity *this_target;
const gchar *this_chat_id;
gboolean this_is_chatroom;
+ gint this_type;
gtk_tree_model_get (model, &iter,
+ COL_WHO_TYPE, &this_type,
COL_WHO_ACCOUNT, &this_account,
COL_WHO_TARGET, &this_target,
-1);
+ if (this_type != COL_TYPE_NORMAL)
+ continue;
+
this_chat_id = tpl_entity_get_identifier (this_target);
this_is_chatroom = tpl_entity_get_entity_type (this_target)
== TPL_ENTITY_ROOM;