mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
ui,stats: don't allow clicking on empty hosts
In the Events tab, don't allow double clicking on the DstHost column if the cell is empty.
This commit is contained in:
parent
dc2c6959e9
commit
dd89509b1c
1 changed files with 2 additions and 0 deletions
|
@ -1907,6 +1907,8 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
|
|||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue