network dialog: default ports
authorThomasV <thomasv@gitorious>
Sat, 5 Oct 2013 06:51:53 +0000 (08:51 +0200)
committerThomasV <thomasv@gitorious>
Sat, 5 Oct 2013 06:51:53 +0000 (08:51 +0200)
gui/qt/network_dialog.py

index 415b511..3011d95 100644 (file)
@@ -177,7 +177,7 @@ class NetworkDialog(QDialog):
     def change_protocol(self, index):
         p = protocol_letters[index]
         host = unicode(self.server_host.text())
-        pp = self.servers.get(host)
+        pp = self.servers.get(host, DEFAULT_PORTS)
         if p not in pp.keys():
             p = pp.keys()[0]
         port = pp[p]