GNOME Bugzilla – Bug 260403
[PATCH]Evolution is not giving Warning message when tried to delete one contact from public-contact folder
Last modified: 2013-09-10 14:04:35 UTC
Steps to reproduce the problem: 1. Go to contacts view. Select public-contacts folder 2. Select one contact which some others had entered(Not owned by you) 3. Delete the contact Actual Results: Contact wont be deleted. Expected Results: Evolution should give one warning message that you dont have permission to delete. How often does this happen? Everytime Additional Information: Working fine only evo should give error message.
Reassiging these to the maintainer 'surfy'.
Created attachment 62840 [details] [review] Patch for the bug 260403 The following patch should fix this bug . Thank you.
Why do you need a EContactDeleteCallback structure? You are not using it in before_deleted_cb(). Just adding a callback function and handling the status is enough. Also, instead of eab_error_dialog() use add a error code and string to errors xml file and use e_error_run() Instead of before_deleted_cb() use dome better name. remove the comment /* no callback specified*/, as you are providing one.
Created attachment 66174 [details] [review] Patch for the Bug Attached a Patch for the above bug, with the above mentioned specified changes
I still see "_EContactDeleteCallback", eab_error_dialog(), before_deleted_cb() and /* no callback specified*/
Created attachment 66239 [details] [review] Patch for the above bug Sorry for teh inconvenience . I attached the wrong patch by mistake !
Created attachment 69488 [details] [review] Slightly modified patch
Permission denied needs to be displayed only if the error is E_BOOK_ERROR_PERMISSION_DENIED, not for all cases.
Created attachment 69552 [details] [review] Patch for the above bug Attached is a patch with the right check.
Add a "default" case also where you can throw some generic error,
Created attachment 69563 [details] [review] patch
Created attachment 69564 [details] [review] patch
Created attachment 70362 [details] [review] Patch
committed the patch to cvs head. And moving the bug to correct component Evolution->addressbook.