# How to remove "delete" from people? [answered]

Here is my problem: my old mother starts "People", then she selects a person and she makes a call. Later she wants to close "People" with a "swipe down" gesture, but she fails and she opens pulldownmenu and that person is deleted. I've told her that there is "remorse time" but she never remember that…

I've searched for more than 1h the lines of code to remove "Delete" from People, but I can't find them. Could you help me, please?

Edit: maybe it's better to remove pulldownmenu entirely in "People - [select a person] ", I've searched "PullDownMenu" string in /usr/share/jolla-contacts but I found nothing useful.

EDIT: here is the solution, thanks a lot to @Edz!!! :-) in /usr/lib/qt5/qml/Sailfish/Contacts/ContactCardPage.qml I've inserted /* at the start of line 127 and */ at the end of the line 180, so there is no PullDownMenu in people contact.

edit retag reopen delete

### The question has been closed for the following reason "the question is answered, an answer was accepted"by paolomi close date 2018-12-23 12:33:53.522472

Sort by » oldest newest most voted

It's not in /usr/share it's in /usr/lib - it is also possible that I have misunderstood your description, but have a look anyway; roughly Line 131/usr/lib/qt5/qml/Sailfish/Contacts/ContactCardPage.qml IF I am in the wrong place, give us a screenshot so I know exactly where you're coming from.

more

With the help @Edz, I found MenuItems from the file '/usr/lib/qt5/qml/Sailfish/Contacts/ContactBrowser.qml lines 571, 578, 595. I tried to set Delete MenuItem visibility to false. That did not remove that from menu.

( 2018-12-23 09:36:53 +0200 )edit
1

It works! Many thanks to Edz!!!! :-)

At first I comment out lines 134 135 136 137 138 139 140 of /usr/lib/qt5/qml/Sailfish/Contacts/ContactCardPage.qml

But in the end I've written /* at the start of line 127 and */ at the end of the line 180

Really thank you!!!

( 2018-12-23 12:20:02 +0200 )edit

Thanks Rikujolla, but in the end I prefer to entirely disable "PullDownMenu". This solution it is better for me because I edit contacts in kaddressbook (kde) and then I import card file in settings: in fact my mother seldom tells me to change people contacts.

Problem solved: thanks a lot :-)

( 2018-12-23 12:30:58 +0200 )edit

Yeah, setting visible: false was all I did for the MenuItem entry. But hey, either way, you got the result you wanted. :)

( 2018-12-23 13:29:58 +0200 )edit