aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-05-17 22:34:08 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-09 19:34:57 +0800
commit9f2331fcb2254a28e17a607cc3f614187dd64af9 (patch)
treebabd301b1c7255a336b6988b21384ca1b045b56b /libempathy-gtk
parentf68071937c2340fd5560c29f4502db146a459b5a (diff)
downloadgsoc2013-empathy-9f2331fcb2254a28e17a607cc3f614187dd64af9.tar
gsoc2013-empathy-9f2331fcb2254a28e17a607cc3f614187dd64af9.tar.gz
gsoc2013-empathy-9f2331fcb2254a28e17a607cc3f614187dd64af9.tar.bz2
gsoc2013-empathy-9f2331fcb2254a28e17a607cc3f614187dd64af9.tar.lz
gsoc2013-empathy-9f2331fcb2254a28e17a607cc3f614187dd64af9.tar.xz
gsoc2013-empathy-9f2331fcb2254a28e17a607cc3f614187dd64af9.tar.zst
gsoc2013-empathy-9f2331fcb2254a28e17a607cc3f614187dd64af9.zip
log_window_chats_set_selected: only act on normal rows
Diffstat (limited to 'libempathy-gtk')
-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 42ac4fa9e..0056ebe37 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -2004,12 +2004,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;