1 files changed, 5 insertions, 14 deletions
diff --git a/resources/qml/dialogs/ImagePackEditorDialog.qml b/resources/qml/dialogs/ImagePackEditorDialog.qml
index 49c9ea07..891d9c3d 100644
--- a/resources/qml/dialogs/ImagePackEditorDialog.qml
+++ b/resources/qml/dialogs/ImagePackEditorDialog.qml
@@ -329,21 +329,12 @@ ApplicationWindow {
footer: DialogButtonBox {
id: buttons
- Button {
- text: qsTr("Cancel")
- DialogButtonBox.buttonRole: DialogButtonBox.DestructiveRole
- onClicked: win.close()
+ standardButtons: DialogButtonBox.Save | DialogButtonBox.Cancel
+ onAccepted: {
+ imagePack.save();
+ win.close();
}
-
- Button {
- text: qsTr("Save")
- DialogButtonBox.buttonRole: DialogButtonBox.ApplyRole
- onClicked: {
- imagePack.save();
- win.close();
- }
- }
-
+ onRejected: win.close()
}
}
|