diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-12-07 19:37:30 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-12-07 19:37:30 +0000 |
commit | 190fc0a1f75cb763fcefcf6cc0c0d59ffc7d0b2e (patch) | |
tree | b232899d917d3691e24ed01df9b446190fc482da /src/tabs.py | |
parent | 9671db59807932ba1ed914d092d00a63dd7280ae (diff) | |
download | poezio-190fc0a1f75cb763fcefcf6cc0c0d59ffc7d0b2e.tar.gz poezio-190fc0a1f75cb763fcefcf6cc0c0d59ffc7d0b2e.tar.bz2 poezio-190fc0a1f75cb763fcefcf6cc0c0d59ffc7d0b2e.tar.xz poezio-190fc0a1f75cb763fcefcf6cc0c0d59ffc7d0b2e.zip |
fix 'j' on MucListTab when row number 0 is selected
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tabs.py b/src/tabs.py index 2dc6a017..bacef726 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -989,8 +989,10 @@ class MucListTab(Tab): return def join_selected(self): - jid = self.listview.get_selected_row()['jid'] - self.core.command_join(jid) + row = self.listview.get_selected_row() + if not row: + return + self.core.command_join(row['jid']) def reset_help_message(self, _=None): curses.curs_set(0) |