From 17fdd5d60618ebc1e84a966b89e57c43fc6dd53a Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 25 Jan 2012 18:14:07 +0100 Subject: Fixes #2316 --- src/tabs.py | 7 ++++++- src/windows.py | 2 -- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src') 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): """ -- cgit v1.2.3