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:
Gustavo Iñiguez Goia 2024-12-16 23:50:36 +01:00
parent dc2c6959e9
commit dd89509b1c
Failed to generate hash of commit

View file

@ -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)