From 204f8b89f345fa81e42ccd3649e8384433ba8ebd Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 30 Mar 2006 21:00:19 +0000 Subject: [PATCH] when sub=to and we remove a contact, don't show the check button "allow other part to view my status" as he is already not interested in it. This result in removing contacts with sub=none, ask=none --- src/roster_window.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 47e4be0d5..96be340ed 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1694,11 +1694,13 @@ _('If "%s" accepts this request you will know his or her status.') % jid) def on_req_usub(self, widget, contact, account): '''Remove a contact''' + check_string = _('I want this contact to know my status after removal') + if contact.sub == 'to': + check_string = '' window = dialogs.ConfirmationDialogCheck( _('Contact "%s" will be removed from your roster') % ( contact.get_shown_name()), - _('By removing this contact you also by default remove authorization resulting in him or her always seeing you as offline.'), - _('I want this contact to know my status after removal')) + _('By removing this contact you also by default remove authorization resulting in him or her always seeing you as offline.'), check_string) # maybe use 2 optionboxes from which the contact can select? (better) if window.get_response() == gtk.RESPONSE_OK: remove_auth = True