summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-12-09 13:56:14 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-12-09 13:56:55 +0100
commita25b39777c69698163d80575aa623004ed465d2b (patch)
treea190b90ddf882b5dee38178249eb0b6908ff6f4c /src
parent77ecd70274e5da6aed05729c73a2b37247c7b338 (diff)
downloadpoezio-a25b39777c69698163d80575aa623004ed465d2b.tar.gz
poezio-a25b39777c69698163d80575aa623004ed465d2b.tar.bz2
poezio-a25b39777c69698163d80575aa623004ed465d2b.tar.xz
poezio-a25b39777c69698163d80575aa623004ed465d2b.zip
Fix sorting columns when a room has no name. (we use '' instead of None)
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py2
-rw-r--r--src/windows.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 37dd7a1a..dc7aa22d 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -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()
diff --git a/src/windows.py b/src/windows.py
index 6c3c8b5c..1b833290 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -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):
"""