Give no address instead of a wrong address if unknown

Contributes to issue CURA-3161.
This commit is contained in:
Ghostkeeper 2017-02-09 10:33:14 +01:00
parent e37d8b949e
commit 27c30006da
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -225,7 +225,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
## The IP address of the printer. ## The IP address of the printer.
@pyqtProperty(str, constant = True) @pyqtProperty(str, constant = True)
def address(self): def address(self):
return self._properties.get(b"address", b"0.0.0.0").decode("utf-8") return self._properties.get(b"address", b"").decode("utf-8")
## Name of the printer (as returned from the zeroConf properties) ## Name of the printer (as returned from the zeroConf properties)
@pyqtProperty(str, constant = True) @pyqtProperty(str, constant = True)