summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-01-10 18:59:34 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-01-10 18:59:34 +0100
commit63d2b8f06f81f6fdc5b36af67b493ca3cc6c7865 (patch)
treea72630d242d37dcaf0d0244ffefd92d5e60256c3 /src/tabs.py
parent97ee65fcb87325bd7fa0bbe3d1487e6a3fda5f65 (diff)
downloadpoezio-63d2b8f06f81f6fdc5b36af67b493ca3cc6c7865.tar.gz
poezio-63d2b8f06f81f6fdc5b36af67b493ca3cc6c7865.tar.bz2
poezio-63d2b8f06f81f6fdc5b36af67b493ca3cc6c7865.tar.xz
poezio-63d2b8f06f81f6fdc5b36af67b493ca3cc6c7865.zip
Avoid traceback on text_win refresh
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 1cec7b28..74dc468d 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -605,7 +605,7 @@ class MucTab(ChatTab):
def on_gain_focus(self):
self._room.set_color_state(theme.COLOR_TAB_CURRENT)
- if self.text_win.built_lines[-1] is None:
+ if self.text_win.built_lines and self.text_win.built_lines[-1] is None:
self.text_win.remove_line_separator()
curses.curs_set(1)