From 1d4ab98ddc12bd4ef76f96ac71ef7a97bff0bc84 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Thu, 2 May 2019 08:25:27 +0200 Subject: [PATCH] Fix binding loop CURA-6483 --- .../UM3NetworkPrinting/resources/qml/DiscoverUM3Action.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/UM3NetworkPrinting/resources/qml/DiscoverUM3Action.qml b/plugins/UM3NetworkPrinting/resources/qml/DiscoverUM3Action.qml index 1e3da11e0a..ecec87ef02 100644 --- a/plugins/UM3NetworkPrinting/resources/qml/DiscoverUM3Action.qml +++ b/plugins/UM3NetworkPrinting/resources/qml/DiscoverUM3Action.qml @@ -349,8 +349,8 @@ Cura.MachineAction MessageDialog { id: invalidIPAddressMessageDialog - x: ((parent.width - width) / 2) | 0 - y: ((parent.height - height) / 2) | 0 + x: (parent.x + (parent.width) / 2) | 0 + y: (parent.y + (parent.height) / 2) | 0 title: catalog.i18nc("@title:window", "Invalid IP address") text: catalog.i18nc("@text", "Please enter a valid IP address.") icon: StandardIcon.Warning