mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
pop-ups: avoid exceptions with old protobuf libs
reverse() doesn't exist on old protobuf libs.
This commit is contained in:
parent
177d67d0a6
commit
4493c86bc3
1 changed files with 5 additions and 1 deletions
|
@ -463,7 +463,11 @@ class PromptDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
|
|||
spaces = " "
|
||||
indicator = ""
|
||||
|
||||
con.process_tree.reverse()
|
||||
try:
|
||||
# reverse() doesn't exist on old protobuf libs.
|
||||
con.process_tree.reverse()
|
||||
except:
|
||||
pass
|
||||
for path in con.process_tree:
|
||||
tree = "{0}<p>│{1}\t{2}{3}{4}</p>".format(tree, path.value, spaces, indicator, path.key)
|
||||
spaces += " " * 4
|
||||
|
|
Loading…
Add table
Reference in a new issue