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


Commits:
6dfb44d3 by lovetox at 2021-07-24T21:08:01+02:00
Fix HistorySync

- - - - -


2 changed files:

- gajim/app_actions.py
- gajim/gtk/history_sync.py


Changes:

=====================================
gajim/app_actions.py
=====================================
@@ -162,8 +162,7 @@ def on_blocking_list(_action, param):
 def on_history_sync(_action, param):
     account = param.get_string()
     open_window('HistorySyncAssistant',
-                account=account,
-                parent=interface.roster.window)
+                account=account)
 
 
 def on_server_info(_action, param):


=====================================
gajim/gtk/history_sync.py
=====================================
@@ -41,7 +41,7 @@ class Pages(IntEnum):
 
 
 class HistorySyncAssistant(Gtk.Assistant, EventHelper):
-    def __init__(self, account, parent):
+    def __init__(self, account):
         Gtk.Assistant.__init__(self)
         EventHelper.__init__(self)
         self.set_application(app.app)
@@ -49,7 +49,7 @@ def __init__(self, account, parent):
         self.set_name('HistorySyncAssistant')
         self.set_default_size(300, -1)
         self.set_resizable(False)
-        self.set_transient_for(parent)
+        self.set_transient_for(app.window)
 
         self.account = account
         self.con = app.connections[self.account]



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/6dfb44d3ae10d9f12c52b22a868556fb1e17ad4f

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