forked from openlp/openlp
rename variable
This commit is contained in:
parent
7d47010304
commit
c0d19ec840
@ -212,8 +212,8 @@ class RemoteTab(SettingsTab):
|
|||||||
self.live_url.setText('<a href="%s">%s</a>' % (http_url_temp, http_url_temp))
|
self.live_url.setText('<a href="%s">%s</a>' % (http_url_temp, http_url_temp))
|
||||||
self.live_https_url.setText('<a href="%s">%s</a>' % (https_url_temp, https_url_temp))
|
self.live_https_url.setText('<a href="%s">%s</a>' % (https_url_temp, https_url_temp))
|
||||||
|
|
||||||
def get_ip_address(self, ip):
|
def get_ip_address(self, ip_address):
|
||||||
if ip == ZERO_URL:
|
if ip_address == ZERO_URL:
|
||||||
interfaces = QtNetwork.QNetworkInterface.allInterfaces()
|
interfaces = QtNetwork.QNetworkInterface.allInterfaces()
|
||||||
for interface in interfaces:
|
for interface in interfaces:
|
||||||
if not interface.isValid():
|
if not interface.isValid():
|
||||||
@ -224,7 +224,7 @@ class RemoteTab(SettingsTab):
|
|||||||
ip = address.ip()
|
ip = address.ip()
|
||||||
if ip.protocol() == 0 and ip != QtNetwork.QHostAddress.LocalHost:
|
if ip.protocol() == 0 and ip != QtNetwork.QHostAddress.LocalHost:
|
||||||
return ip.toString()
|
return ip.toString()
|
||||||
return ip
|
return ip_address
|
||||||
|
|
||||||
def load(self):
|
def load(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user