From 27c30006da20b8cf1e849c2f5adfa1e4535c179e Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 9 Feb 2017 10:33:14 +0100 Subject: [PATCH] Give no address instead of a wrong address if unknown Contributes to issue CURA-3161. --- plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py index 69d5c8abc2..5790cdab77 100644 --- a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py +++ b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py @@ -225,7 +225,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice): ## The IP address of the printer. @pyqtProperty(str, constant = True) 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) @pyqtProperty(str, constant = True)