summaryrefslogtreecommitdiffstats
path: root/module/gui/ConnectionManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/gui/ConnectionManager.py')
-rw-r--r--module/gui/ConnectionManager.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/module/gui/ConnectionManager.py b/module/gui/ConnectionManager.py
index 51f39f2be..7a7a25f5f 100644
--- a/module/gui/ConnectionManager.py
+++ b/module/gui/ConnectionManager.py
@@ -213,16 +213,15 @@ class ConnectionManager(QWidget):
grid.addWidget(save, 6, 1)
self.setLayout(grid)
- self.controls = {}
- self.controls["name"] = name
- self.controls["host"] = host
- self.controls["local"] = local
- self.controls["user"] = user
- self.controls["password"] = password
- self.controls["port"] = port
- self.controls["save"] = save
- self.controls["cancel"] = cancel
-
+ self.controls = {"name": name,
+ "host": host,
+ "local": local,
+ "user": user,
+ "password": password,
+ "port": port,
+ "save": save,
+ "cancel": cancel}
+
self.connect(cancel, SIGNAL("clicked()"), self.hide)
self.connect(save, SIGNAL("clicked()"), self.slotDone)
self.connect(local, SIGNAL("stateChanged(int)"), self.slotLocalChanged)