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

Commits:

1 changed file:

Changes:

  • gajim/gtk/account_wizard.py
    ... ... @@ -293,7 +293,6 @@ class AccountCreationWizard:
    293 293
                         100, self.update_progressbar)
    
    294 294
                     # Get form from serveur
    
    295 295
                     con = connection.Connection(self.account)
    
    296
    -                app.plugin_manager.register_modules_for_account(con)
    
    297 296
                     app.connections[self.account] = con
    
    298 297
                     con.new_account(self.account, config)
    
    299 298
             elif cur_page == 3:
    
    ... ... @@ -458,6 +457,10 @@ class AccountCreationWizard:
    458 457
             self.create_vars(obj.account_info)
    
    459 458
             self.show_finish_page()
    
    460 459
     
    
    460
    +        # Register plugin modules after successful registration
    
    461
    +        # Some plugins need the registered JID to function properly
    
    462
    +        app.plugin_manager.register_modules_for_account(obj.conn)
    
    463
    +
    
    461 464
             if self.update_progressbar_timeout_id is not None:
    
    462 465
                 GLib.source_remove(self.update_progressbar_timeout_id)
    
    463 466