Philipp Hörist pushed to branch master at gajim / gajim


Commits:
3de999d9 by Daniel Brötzmann at 2019-09-25T16:32:05Z
Fix show_unsubscribed_dialog

- - - - -


1 changed file:

- gajim/gui_interface.py


Changes:

=====================================
gajim/gui_interface.py
=====================================
@@ -405,9 +405,8 @@ class Interface:
             % obj.jid)
 
     def show_unsubscribed_dialog(self, account, contact):
-        def _remove(list_):
-            self.roster.on_req_usub(None, list_)
-        list_ = [(contact, account)]
+        def _remove():
+            self.roster.on_req_usub(None, [(contact, account)])
 
         NewConfirmationDialog(
             _('Subscription Removed'),
@@ -417,7 +416,7 @@ class Interface:
             [DialogButton.make('Cancel',
                                text=_('_No')),
              DialogButton.make('Remove',
-                               callback=_remove(list_))]).show()
+                               callback=_remove)]).show()
 
         # FIXME: Per RFC 3921, we can "deny" ack as well, but the GUI does
         # not show deny



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/3de999d93b9203304496f709b531eb3af0293a0a

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/3de999d93b9203304496f709b531eb3af0293a0a
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to