From 70a93ac0a26973142ab6832b63a65bcd48d268c4 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Tue, 9 Aug 2016 10:27:19 +0200 Subject: [PATCH] Only associate to a Jedi if the MachineAction is currently shown CURA-2041 --- DiscoverUM3Action.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/DiscoverUM3Action.qml b/DiscoverUM3Action.qml index d7992a1f5f..e679413770 100644 --- a/DiscoverUM3Action.qml +++ b/DiscoverUM3Action.qml @@ -17,7 +17,14 @@ Cura.MachineAction { target: dialog ? dialog : null ignoreUnknownSignals: true - onNextClicked: connectToPrinter() + onNextClicked: + { + // Connect to the printer if the MachineAction is currently shown + if(base.parent == dialog) + { + connectToPrinter(); + } + } } function connectToPrinter()