Commit b42a3ed4 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

RemoveAccounts: Fix race condition when removing an account

disable_account() closes all account related dialogs. RemoveAccount
is such a dialog but should not be closed mid processing the account
removal.

Fixes #10401
parent 30d21d82
......@@ -1722,7 +1722,10 @@ def disable_account(self, account):
ctrl.shutdown()
for win in get_app_windows(account):
# Close all account specific windows
# Close all account specific windows, except the RemoveAccount
# dialog. It shows if the removal was successful.
if type(win).__name__ == 'RemoveAccount':
continue
win.destroy()
if account == app.ZEROCONF_ACC_NAME:
......
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