From 34809aa74dd59932af8ebe20293d199060c6f977 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Thu, 21 Jun 2007 19:10:08 +0000 Subject: [PATCH] fix for last commit. oops --- src/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"))