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


Commits:
4117992d by wurstsalat at 2024-11-06T22:38:33+01:00
refactor: ChangePasswordSetting: Fix show_dialog method

- - - - -


1 changed file:

- gajim/gtk/settings.py


Changes:

=====================================
gajim/gtk/settings.py
=====================================
@@ -841,8 +841,12 @@ class ChangePasswordSetting(DialogSetting):
     def __init__(self, *args: Any, **kwargs: Any) -> None:
         DialogSetting.__init__(self, *args, **kwargs)
 
-    def show_dialog(self, parent: Gtk.Window) -> None:
-        parent.destroy()
+    def show_dialog(self) -> None:
+        settings_box = self.get_parent()
+        assert isinstance(settings_box, SettingsBox)
+        settings_dialog = settings_box.get_root()
+        assert isinstance(settings_dialog, Gtk.ApplicationWindow)
+        settings_dialog.destroy()
         open_window("ChangePassword", account=self.account)
 
     def update_activatable(self) -> None:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/4117992d6253c99f0e4fb11d1853c7ed4c74afa6

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


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to