diff --git a/resources/qml/MachineAction.qml b/resources/qml/MachineAction.qml index 59fb3946a3..2c43f9f96d 100644 --- a/resources/qml/MachineAction.qml +++ b/resources/qml/MachineAction.qml @@ -3,6 +3,10 @@ import QtQuick 2.2 Item { id: contentItem + + // Point to the dialog containing the displayItem + property var dialog + // Connect the finished property change to completed signal. property var finished: manager.finished onFinishedChanged: if(manager.finished) {completed()} diff --git a/resources/qml/Preferences/MachinesPage.qml b/resources/qml/Preferences/MachinesPage.qml index b057a33d52..e5b04d1ee9 100644 --- a/resources/qml/Preferences/MachinesPage.qml +++ b/resources/qml/Preferences/MachinesPage.qml @@ -106,6 +106,7 @@ UM.ManagementPage { contents = content; content.onCompleted.connect(hide) + content.dialog = actionDialog } rightButtons: Button {