|
|
@ -841,7 +841,7 @@ class ElectrumWindow(QMainWindow): |
|
|
|
import random |
|
|
|
status = "Please choose a server." |
|
|
|
host = random.choice( interface.servers ) |
|
|
|
port = wallet.default_port |
|
|
|
port = wallet.port |
|
|
|
|
|
|
|
d = QDialog(parent) |
|
|
|
d.setModal(1) |
|
|
@ -870,7 +870,7 @@ class ElectrumWindow(QMainWindow): |
|
|
|
servers_list.setMaximumHeight(150) |
|
|
|
for item in wallet.interface.servers: |
|
|
|
servers_list.addTopLevelItem(QTreeWidgetItem( [ item ] )) |
|
|
|
servers_list.connect(servers_list, SIGNAL('itemClicked(QTreeWidgetItem*, int)'), lambda x:host_line.setText( x.text(0) + ':%d'%wallet.default_port )) |
|
|
|
servers_list.connect(servers_list, SIGNAL('itemClicked(QTreeWidgetItem*, int)'), lambda x:host_line.setText( x.text(0) + ':%d'%wallet.port )) |
|
|
|
vbox.addWidget(servers_list) |
|
|
|
|
|
|
|
vbox.addLayout(ok_cancel_buttons(d)) |
|
|
@ -885,7 +885,7 @@ class ElectrumWindow(QMainWindow): |
|
|
|
port = int(port) |
|
|
|
else: |
|
|
|
host = hh |
|
|
|
port = wallet.default_port |
|
|
|
port = wallet.port |
|
|
|
except: |
|
|
|
show_message("error") |
|
|
|
if parent == None: |
|
|
|