pygui: fixed exception from bad check when double clicking in sessions dialog

This commit is contained in:
Blake Harnden 2020-07-31 23:23:18 -07:00
parent e7a93e7fd6
commit 04f7bc561b

View file

@ -190,7 +190,7 @@ class SessionsDialog(Dialog):
def double_click_join(self, _event: tk.Event) -> None:
item = self.tree.selection()
if item is None:
if not item:
return
session_id = int(self.tree.item(item, "text"))
self.join_session(session_id)