mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 00:24:40 +01:00
ui: fixed searching in tab Users
This commit is contained in:
parent
fcaf3b8181
commit
8f2ba67077
1 changed files with 5 additions and 2 deletions
|
@ -2419,8 +2419,11 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
|
|||
|
||||
if idx == StatsDialog.TAB_RULES:
|
||||
return " WHERE rules.name LIKE '%{0}%' OR rules.operator_data LIKE '%{1}%' ".format(text, text)
|
||||
elif idx == StatsDialog.TAB_HOSTS or idx == StatsDialog.TAB_PROCS or \
|
||||
idx == StatsDialog.TAB_ADDRS or idx == StatsDialog.TAB_PORTS:
|
||||
elif idx == StatsDialog.TAB_HOSTS or \
|
||||
idx == StatsDialog.TAB_PROCS or \
|
||||
idx == StatsDialog.TAB_ADDRS or \
|
||||
idx == StatsDialog.TAB_PORTS or \
|
||||
idx == StatsDialog.TAB_USERS:
|
||||
return " WHERE what LIKE '%{0}%' ".format(text)
|
||||
|
||||
return ""
|
||||
|
|
Loading…
Add table
Reference in a new issue