summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-01-25 18:14:07 +0100
committermathieui <mathieui@mathieui.net>2012-01-25 18:14:07 +0100
commit17fdd5d60618ebc1e84a966b89e57c43fc6dd53a (patch)
tree8276bd08d35cb8b30598f2305c4ebd204d870290
parent7ba606136293aa9b08cb1185e046cfdff7bf1589 (diff)
downloadpoezio-17fdd5d60618ebc1e84a966b89e57c43fc6dd53a.tar.gz
poezio-17fdd5d60618ebc1e84a966b89e57c43fc6dd53a.tar.bz2
poezio-17fdd5d60618ebc1e84a966b89e57c43fc6dd53a.tar.xz
poezio-17fdd5d60618ebc1e84a966b89e57c43fc6dd53a.zip
Fixes #2316
-rw-r--r--src/tabs.py7
-rw-r--r--src/windows.py2
2 files changed, 6 insertions, 3 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 019fae30..374cdc4f 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -2371,7 +2371,12 @@ class MucListTab(Tab):
'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()
+ if self.core.current_tab() is self:
+ self.listview.refresh()
+ self.upper_message.refresh()
+ else:
+ self.state = 'highlight'
+ self.refresh_tab_win()
curses.doupdate()
def sort_by(self):
diff --git a/src/windows.py b/src/windows.py
index 89630a12..3a852ebc 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -1667,8 +1667,6 @@ class ListWin(Win):
if not lines:
return
self.lines += lines
- self.refresh()
- curses.doupdate()
def get_selected_row(self):
"""