4051cca
From 38d7b7cdfde3c50d6263602ffb03af92fcbfa52e Mon Sep 17 00:00:00 2001
4051cca
From: Calum Lind <calumlind+deluge@gmail.com>
4051cca
Date: Sat, 13 May 2017 00:05:48 +0100
4051cca
Subject: [GTKUI] Fix keyerror showing prefs
4051cca
4051cca
 * Fix the single_proxy ui to True as unlikely any users using <=0.15
4051cca
   and need to have different proxy type settings.
4051cca
---
4051cca
 deluge/ui/gtkui/preferences.py | 7 ++-----
4051cca
 1 file changed, 2 insertions(+), 5 deletions(-)
4051cca
4051cca
diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py
4051cca
index 645ad26..efcd93d 100644
4051cca
--- a/deluge/ui/gtkui/preferences.py
4051cca
+++ b/deluge/ui/gtkui/preferences.py
4051cca
@@ -318,11 +318,8 @@ class Preferences(component.Component):
4051cca
             }
4051cca
             # Add proxy stuff
4051cca
 
4051cca
-            # Display workaround for single proxy in libtorrent >v0.16
4051cca
-            try:
4051cca
-                lt_single_proxy = component.get("PreferencesManager").LT_SINGLE_PROXY
4051cca
-            except AttributeError:
4051cca
-                lt_single_proxy = False
4051cca
+            # Display workaround for single proxy in libtorrent >= v0.16
4051cca
+            lt_single_proxy = True
4051cca
 
4051cca
             for t in ("peer", "web_seed", "tracker", "dht"):
4051cca
                 if lt_single_proxy and not t == "peer":
4051cca
-- 
4051cca
cgit v1.1
4051cca