From e217dedef77faa19ea16145878c4e6da6f4a8249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20I=C3=B1iguez=20Goia?= Date: Wed, 17 Jun 2020 20:32:12 +0200 Subject: [PATCH] UI: fixed crash when clicking on a user name fixes #38 --- ui/opensnitch/dialogs/stats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/opensnitch/dialogs/stats.py b/ui/opensnitch/dialogs/stats.py index cae1236266..6dde90ee74 100644 --- a/ui/opensnitch/dialogs/stats.py +++ b/ui/opensnitch/dialogs/stats.py @@ -696,7 +696,8 @@ def _set_active_widgets(self, state, label_txt=""): self.TABLES[cur_idx]['label'].setText(label_txt) self.TABLES[cur_idx]['cmd'].setVisible(state) self.TABLES[cur_idx]['tipLabel'].setVisible(not state) - self.TABLES[cur_idx]['filterLine'].setVisible(not state) + if self.TABLES[cur_idx]['filterLine'] != None: + self.TABLES[cur_idx]['filterLine'].setVisible(not state) def _set_rules_tab_active(self, row, cur_idx): data = row.data()