summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py6
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)