wrap long lines

This commit is contained in:
Marek Marczykowski-Górecki 2016-06-21 02:03:32 +02:00
parent e625b4c5b5
commit 00caebda95
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -958,7 +958,8 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
if port is not None:
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:
item = {"address": address,
"netmask": netmask,
@ -971,7 +972,8 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
else:
self.fw_model.appendChild(item)
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: