Skip to content

Commit

Permalink
ui,stats: don't allow clicking on empty hosts
Browse files Browse the repository at this point in the history
In the Events tab, don't allow double clicking on the DstHost column if
the cell is empty.
  • Loading branch information
gustavo-iniguez-goya committed Dec 16, 2024
1 parent dc2c695 commit dd89509
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/opensnitch/dialogs/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -1907,6 +1907,8 @@ def _cb_main_table_double_clicked(self, row):
self.IN_DETAIL_VIEW[cur_idx] = True
rowdata = row.model().index(row.row(), self.COL_DSTHOST).data()
host = rowdata
if host == "":
return
self.LAST_SELECTED_ITEM = host
self.tabWidget.setCurrentIndex(cur_idx)
self._set_active_widgets(True, host)
Expand Down

0 comments on commit dd89509

Please sign in to comment.