diff options
author | Ghostkeeper <rubend@tutanota.com> | 2022-02-04 16:31:27 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2022-02-04 16:31:27 +0300 |
commit | 7f8591718db7189c8879746502e8eba8f8732d88 (patch) | |
tree | 5efa9537865880565469737dbef9f42cfcbfb5a1 /resources/qml/Cura.qml | |
parent | 9a3cab1ec2c71ec1a16370015664326324197c16 (diff) |
Remove central messageBox in favour of local box
The profile import/export was the only place where it was used, in our code base.
Contributes to issue CURA-8687.
Diffstat (limited to 'resources/qml/Cura.qml')
-rw-r--r-- | resources/qml/Cura.qml | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index 7e347df4ee..2a5f733dfb 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -813,35 +813,6 @@ UM.MainWindow } } - MessageDialog - { - id: messageDialog - modality: Qt.ApplicationModal - onAccepted: CuraApplication.messageBoxClosed(clickedButton) - onApply: CuraApplication.messageBoxClosed(clickedButton) - onDiscard: CuraApplication.messageBoxClosed(clickedButton) - onHelp: CuraApplication.messageBoxClosed(clickedButton) - onNo: CuraApplication.messageBoxClosed(clickedButton) - onRejected: CuraApplication.messageBoxClosed(clickedButton) - onReset: CuraApplication.messageBoxClosed(clickedButton) - onYes: CuraApplication.messageBoxClosed(clickedButton) - } - - Connections - { - target: CuraApplication - function onShowMessageBox(title, text, informativeText, detailedText, buttons, icon) - { - messageDialog.title = title - messageDialog.text = text - messageDialog.informativeText = informativeText - messageDialog.detailedText = detailedText - messageDialog.standardButtons = buttons - messageDialog.icon = icon - messageDialog.visible = true - } - } - Component { id: discardOrKeepProfileChangesDialogComponent |