Preferences/__init__.py

changeset 162
28f235c426c4
parent 149
a134031209be
child 165
3302a726fd1e
diff -r bb3cc98f4104 -r 28f235c426c4 Preferences/__init__.py
--- a/Preferences/__init__.py	Tue Mar 30 17:17:15 2010 +0000
+++ b/Preferences/__init__.py	Wed Mar 31 11:59:53 2010 +0000
@@ -200,6 +200,7 @@
         "AutoStartServer" : False,
         "TryOtherPorts" : True, 
         "MaxPortsToTry" : 100, 
+        "AutoAcceptConnections" : False, 
     }
     
     # defaults for the editor settings
@@ -1168,7 +1169,7 @@
     @param prefClass preferences class used as the storage area
     @return the requested UI setting
     """
-    if key in ["AutoStartServer", "TryOtherPorts"]:
+    if key in ["AutoStartServer", "TryOtherPorts", "AutoAcceptConnections"]:
         return toBool(prefClass.settings.value("Cooperation/" + key,
             prefClass.cooperationDefaults[key]))
     elif key in ["ServerPort", "MaxPortsToTry"]:

eric ide

mercurial