Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
5a4699ee by wurstsalat at 2022-03-15T22:51:01+01:00
ConfirmationDialog: Fix propagating checkbutton state for DELETE_EVENT

Fixes #10472

- - - - -


1 changed file:

- gajim/gtk/dialogs.py


Changes:

=====================================
gajim/gtk/dialogs.py
=====================================
@@ -253,6 +253,11 @@ def __init__(self,
         self._buttons: dict[Gtk.ResponseType, DialogButton] = {}
 
         for button in buttons:
+            if button.response == Gtk.ResponseType.CANCEL:
+                # Map CANCEL to DELETE_EVENT. Otherwise, button args for
+                # CANCEL will not be propagated (i.e. checkbutton state)
+                self._buttons[Gtk.ResponseType.DELETE_EVENT] = button
+
             self._buttons[button.response] = button
             self.add_button(button.text, button.response)
             if button.is_default:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/5a4699ee353b789cee8de96df42669ad8f10a378

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/5a4699ee353b789cee8de96df42669ad8f10a378
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