Commit c1dd6a04 authored by Daniel Brötzmann's avatar Daniel Brötzmann

StartChatDialog: Fix filter error and add dim-label for jid

parent c18cc281
...@@ -242,6 +242,9 @@ class StartChatDialog(Gtk.ApplicationWindow): ...@@ -242,6 +242,9 @@ class StartChatDialog(Gtk.ApplicationWindow):
def _select_new_match(self, entry, direction): def _select_new_match(self, entry, direction):
selected_row = self.listbox.get_selected_row() selected_row = self.listbox.get_selected_row()
if selected_row is None:
return
index = selected_row.get_index() index = selected_row.get_index()
if direction == 'next': if direction == 'next':
...@@ -440,6 +443,7 @@ class ContactRow(Gtk.Grid): ...@@ -440,6 +443,7 @@ class ContactRow(Gtk.Grid):
self.jid_label.set_xalign(0) self.jid_label.set_xalign(0)
self.jid_label.set_width_chars(25) self.jid_label.set_width_chars(25)
self.jid_label.set_halign(Gtk.Align.START) self.jid_label.set_halign(Gtk.Align.START)
self.jid_label.get_style_context().add_class('dim-label')
middle_box.add(self.jid_label) middle_box.add(self.jid_label)
self.add(middle_box) self.add(middle_box)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment