From 52dfd0ccdbcd0a05dd5d1b4e88c44f123504b5c6 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Tue, 22 Jan 2013 00:42:35 +0100 Subject: [PATCH] restare remote tab --- openlp/plugins/remotes/lib/remotetab.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openlp/plugins/remotes/lib/remotetab.py b/openlp/plugins/remotes/lib/remotetab.py index bd3e14ff2..1d28355c4 100644 --- a/openlp/plugins/remotes/lib/remotetab.py +++ b/openlp/plugins/remotes/lib/remotetab.py @@ -32,6 +32,9 @@ from PyQt4 import QtCore, QtGui, QtNetwork from openlp.core.lib import Settings, SettingsTab, translate, Receiver +ZERO_URL = u'0.0.0.0' + + class RemoteTab(SettingsTab): """ RemoteTab is the Remotes settings tab in the settings dialog. @@ -114,7 +117,7 @@ class RemoteTab(SettingsTab): def setUrls(self): ipAddress = u'localhost' - if self.addressEdit.text() == Settings().value(self.settingsSection + u'/ip address'): + if self.addressEdit.text() == ZERO_URL: ifaces = QtNetwork.QNetworkInterface.allInterfaces() for iface in ifaces: if not iface.isValid():