diff --git a/src/interface.py b/src/interface.py index d5ec290b6..bdd63a104 100644 --- a/src/interface.py +++ b/src/interface.py @@ -837,7 +837,7 @@ class DelugeGTK: # Update Statusbar and Tray Tips core_state = self.manager.get_state() connections = core_state['num_peers'] - if (int(self.config.get("max_connections")) == -1): + if self.config.get("max_connections") < 0 : max_connections = _("Unlimited") else: max_connections = int(self.config.get("max_connections"))