https://bugs.kde.org/show_bug.cgi?id=522138

--- Comment #1 from Marco Mattiolo <[email protected]> ---
Tried simply with

                onAccepted: {
                    root.save();
                    switch(root.state) {
                        case "create":
                            if (!KPeople.PersonPluginManager.addContact({
"vcard": ContactController.addresseeToVCard(addressee) }))
                                console.warn("could not create contact")
                            break;
                        case "update":
                            if (!root.person.setContactCustomProperty("vcard",
ContactController.addresseeToVCard(addressee)))
                                console.warn("Could not save", addressee.url)
                            break;
                    }
                    Kirigami.PageStack.closeDialog()
                }
                onRejected: Kirigami.PageStack.closeDialog()
            }

but the Close button does not work anymore with that...

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to