1
0

fix: network.interface can become None at any time

This commit is contained in:
SomberNight
2018-06-25 01:14:49 +02:00
parent f8dab46a4b
commit 51ed8a998c
3 changed files with 8 additions and 4 deletions

View File

@@ -340,7 +340,8 @@ class NetworkChoiceLayout(object):
self.server_port.setText(port)
self.autoconnect_cb.setChecked(auto_connect)
host = self.network.interface.host if self.network.interface else _('None')
interface = self.network.interface
host = interface.host if interface else _('None')
self.server_label.setText(host)
self.set_protocol(protocol)