Fix sorting columns when a room has no name. (we use '' instead of None)
This commit is contained in:
parent
5fe3c49d40
commit
cf1cdd1834
2 changed files with 1 additions and 2 deletions
|
@ -2354,7 +2354,7 @@ class MucListTab(Tab):
|
|||
return
|
||||
items = [{'node-part': JID(item[0]).user if JID(item[0]).server == self.name else JID(item[0]).bare,
|
||||
'jid': item[0],
|
||||
'name': item[2],'users': ''} for item in iq['disco_items'].get_items()]
|
||||
'name': item[2] or '' ,'users': ''} for item in iq['disco_items'].get_items()]
|
||||
self.listview.add_lines(items)
|
||||
self.upper_message.set_message('Chatroom list on server %s' % self.name)
|
||||
self.upper_message.refresh()
|
||||
|
|
|
@ -1648,7 +1648,6 @@ class ListWin(Win):
|
|||
self.lines.sort(key=lambda x: x[col_name],reverse=True)
|
||||
self.refresh()
|
||||
curses.doupdate()
|
||||
pass # TODO
|
||||
|
||||
def add_lines(self, lines):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue