fixed crash when clicking on a General tab wrong column

Reported here: https://github.com/gustavo-iniguez-goya/opensnitch/issues/38#issuecomment-665006899
This commit is contained in:
Gustavo Iñiguez Goia 2020-07-28 18:23:21 +02:00
parent ace124ad6a
commit dba0c83ced

View file

@ -573,6 +573,8 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
elif idx == StatsDialog.COL_RULES:
cur_idx = 2
self._set_rules_tab_active(row, cur_idx)
else:
return
self._set_active_widgets(True, str(data))