diff --git a/src/config.py b/src/config.py
index 267d709e1f7d2d2ec82de4a27eb78cce0e9f79e7..4cac5ae36b41e7af313d5ac40fa4788aff1b50b6 100644
--- a/src/config.py
+++ b/src/config.py
@@ -1298,7 +1298,7 @@ class AccountModificationWindow:
 
 			if config['use_custom_host'] and (self.option_changed(config,
 				'custom_host') or self.option_changed(config, 'custom_port')):
-					relogin_needed = True
+				relogin_needed = True
 
 		if relogin_needed:
 			dialog = dialogs.YesNoDialog(_('Relogin now?'),