wrap long lines
This commit is contained in:
parent
e625b4c5b5
commit
00caebda95
@ -958,7 +958,8 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
|||||||
|
|
||||||
if port is not None:
|
if port is not None:
|
||||||
if port2 is not None and port2 <= port:
|
if port2 is not None and port2 <= port:
|
||||||
QMessageBox.warning(None, "Invalid service ports range", "Port {0} is lower than port {1}.".format(port2, port))
|
QMessageBox.warning(None, "Invalid service ports range",
|
||||||
|
"Port {0} is lower than port {1}.".format(port2, port))
|
||||||
else:
|
else:
|
||||||
item = {"address": address,
|
item = {"address": address,
|
||||||
"netmask": netmask,
|
"netmask": netmask,
|
||||||
@ -971,7 +972,8 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
|||||||
else:
|
else:
|
||||||
self.fw_model.appendChild(item)
|
self.fw_model.appendChild(item)
|
||||||
else:
|
else:
|
||||||
QMessageBox.warning(None, "Invalid service name", "Service '{0} is unknown.".format(service))
|
QMessageBox.warning(None, "Invalid service name",
|
||||||
|
"Service '{0}' is unknown.".format(service))
|
||||||
|
|
||||||
|
|
||||||
# Bases on the original code by:
|
# Bases on the original code by:
|
||||||
|
Loading…
Reference in New Issue
Block a user