We have moved to a new Sailfish OS Forum. Please start new discussions there.
4

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

asked 2018-12-22 21:44:33 +0300

paolomi gravatar image

updated 2018-12-23 12:32:41 +0300

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 flag offensive 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

1 Answer

Sort by » oldest newest most voted
3

answered 2018-12-23 00:33:47 +0300

Spam Hunter gravatar image

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.

edit flag offensive delete publish link more

Comments

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.

Rikujolla ( 2018-12-23 09:36:53 +0300 )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!!!

paolomi ( 2018-12-23 12:20:02 +0300 )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 :-)

paolomi ( 2018-12-23 12:30:58 +0300 )edit

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

Spam Hunter ( 2018-12-23 13:29:58 +0300 )edit

Question tools

Follow
3 followers

Stats

Asked: 2018-12-22 21:44:33 +0300

Seen: 406 times

Last updated: Dec 23 '18