Commit cf8f0c2e authored by Philipp Hörist's avatar Philipp Hörist

Delete account from config if registration fails

parent 6baed38d
......@@ -2370,6 +2370,8 @@ class AccountCreationWizardWindow:
elif cur_page == 4:
if self.account in app.connections:
del app.connections[self.account]
if self.account in app.config.get_per('accounts'):
app.config.del_per('accounts', self.account)
self.notebook.set_current_page(2)
self.xml.get_object('form_vbox').remove(self.data_form_widget)
elif cur_page == 6: # finish page
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment