Firewall GUI fix
Fixed error when service would be left empty, but the settings window would nonetheless emit an error.
This commit is contained in:
parent
b9e4f99fec
commit
3f7f5a9da3
@ -386,7 +386,7 @@ class QubesFirewallRulesModel(QtCore.QAbstractItemModel):
|
|||||||
self.tr("Invalid port or service"),
|
self.tr("Invalid port or service"),
|
||||||
self.tr("Port number or service '{0}' is invalid.")
|
self.tr("Port number or service '{0}' is invalid.")
|
||||||
.format(service))
|
.format(service))
|
||||||
elif service is not None:
|
elif service is not None and service != "":
|
||||||
try:
|
try:
|
||||||
rule.dstports = service
|
rule.dstports = service
|
||||||
except (TypeError, ValueError) as ex:
|
except (TypeError, ValueError) as ex:
|
||||||
|
Loading…
Reference in New Issue
Block a user