Skip to content
Snippets Groups Projects
Commit 196d856a authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Remove password before config values

parent be26f501
No related branches found
No related tags found
No related merge requests found
......@@ -190,6 +190,9 @@ class RemoveAccountWindow:
app.connections[self.account].cleanup()
del app.connections[self.account]
app.logger.remove_roster(app.get_jid_from_account(self.account))
# Delete password must be before del_per() because it calls set_per()
# which would recreate the account with defaults values if not found
passwords.delete_password(self.account)
app.config.del_per('accounts', self.account)
del app.interface.instances[self.account]
if self.account in app.nicks:
......@@ -214,7 +217,6 @@ class RemoveAccountWindow:
app.interface.roster.setup_and_draw_roster()
app.app.remove_account_actions(self.account)
gui_menu_builder.build_accounts_menu()
passwords.delete_password(self.account)
window = app.get_app_window('AccountsWindow')
if window is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment