aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_selector
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/ui/conversation_selector')
-rw-r--r--main/src/ui/conversation_selector/conversation_selector.vala5
1 files changed, 2 insertions, 3 deletions
diff --git a/main/src/ui/conversation_selector/conversation_selector.vala b/main/src/ui/conversation_selector/conversation_selector.vala
index ac087183..4c7e6b8d 100644
--- a/main/src/ui/conversation_selector/conversation_selector.vala
+++ b/main/src/ui/conversation_selector/conversation_selector.vala
@@ -56,7 +56,6 @@ public class ConversationSelector : ListBox {
if (!rows.has_key(conversation)) {
add_conversation(conversation);
}
- rows[conversation].grab_focus();
this.select_row(rows[conversation]);
}
@@ -86,8 +85,8 @@ public class ConversationSelector : ListBox {
if (this.drag_timeout != null)
return false;
this.drag_timeout = Timeout.add(200, () => {
- if (widget.get_type().is_a(typeof(ConversationRow))) {
- ConversationRow row = widget as ConversationRow;
+ if (widget.get_type().is_a(typeof(ConversationSelectorRow))) {
+ ConversationSelectorRow row = widget as ConversationSelectorRow;
conversation_selected(row.conversation);
}
this.drag_timeout = null;