Commit 32723d6e authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Fix delete contact action having unwanted empty dropdown



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent 7d16da26
Pipeline #243057 passed with stage
in 2 minutes and 28 seconds
......@@ -12,14 +12,7 @@ Kirigami.Action {
property string name
property var item
icon.name: "delete"
text: i18nc("@action:inmenu", "Delete contact")
onTriggered: {
const dialog = deleteContactConfirmationDialogComponent.createObject(applicationWindow())
dialog.open()
}
Component {
readonly property Component deleteContactConfirmationDialogComponent: Component {
id: deleteContactConfirmationDialogComponent
QQC2.Dialog {
id: deleteContactConfirmationDialog
......@@ -66,4 +59,11 @@ Kirigami.Action {
}
}
}
icon.name: "delete"
text: i18nc("@action:inmenu", "Delete contact")
onTriggered: {
const dialog = deleteContactConfirmationDialogComponent.createObject(applicationWindow())
dialog.open()
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment