Skip to content
Snippets Groups Projects
Commit e8934edb authored by Vincent Texier's avatar Vincent Texier
Browse files

Fix bug in deleting account selected in preferences

parent e6360fd7
No related branches found
No related tags found
No related merge requests found
...@@ -109,6 +109,9 @@ class Application(QObject): ...@@ -109,6 +109,9 @@ class Application(QObject):
self.current_account = None self.current_account = None
with open(config.parameters['data'], 'w') as outfile: with open(config.parameters['data'], 'w') as outfile:
json.dump(self.jsonify(), outfile, indent=4, sort_keys=True) json.dump(self.jsonify(), outfile, indent=4, sort_keys=True)
if self.preferences['account'] == account.name:
self.preferences['account'] = ""
self.save_preferences(self.preferences)
def change_current_account(self, account): def change_current_account(self, account):
''' '''
......
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