diff options
Diffstat (limited to 'resources/qml/Cura.qml')
-rw-r--r-- | resources/qml/Cura.qml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index c3d9dfbf96..3aa9dc558f 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -838,17 +838,22 @@ UM.MainWindow } } - DiscardOrKeepProfileChangesDialog + Component { - id: discardOrKeepProfileChangesDialog + id: discardOrKeepProfileChangesDialogComponent + DiscardOrKeepProfileChangesDialog { } + } + Loader + { + id: discardOrKeepProfileChangesDialogLoader } - Connections { target: CuraApplication onShowDiscardOrKeepProfileChanges: { - discardOrKeepProfileChangesDialog.show() + discardOrKeepProfileChangesDialogLoader.sourceComponent = discardOrKeepProfileChangesDialogComponent + discardOrKeepProfileChangesDialogLoader.item.show() } } |