From 8c4eddebef0401e49ef31fbb2f8f61a8750548fa Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Sun, 31 Aug 2008 23:02:22 +0000 Subject: [PATCH] Prevent a tb when trying to remove a group. Fix #4275. --- src/roster_window.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 68b8dea15..78eacac28 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2700,10 +2700,6 @@ class RosterWindow: on_canceled) def on_remove_group_item_activated(self, widget, group, account): - dialogs.ConfirmationDialogCheck(_('Remove Group'), - _('Do you want to remove group %s from the roster?' % group), - _('Remove also all contacts in this group from your roster'), - on_response_ok=on_ok) def on_ok(checked): for contact in gajim.contacts.get_contacts_from_group(account, group): if not checked: @@ -2711,6 +2707,10 @@ class RosterWindow: else: gajim.connections[account].unsubscribe(contact.jid) self.remove_contact(contact.jid, account, backend=True) + dialogs.ConfirmationDialogCheck(_('Remove Group'), + _('Do you want to remove group %s from the roster?' % group), + _('Remove also all contacts in this group from your roster'), + on_response_ok=on_ok) def on_assign_pgp_key(self, widget, contact, account): attached_keys = gajim.config.get_per('accounts', account,