← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~raoul-snyman/openlp/remotes-bugs into lp:openlp

 

Raoul Snyman has proposed merging lp:~raoul-snyman/openlp/remotes-bugs into lp:openlp.

Requested reviews:
  OpenLP Core (openlp-core)

For more details, see:
https://code.launchpad.net/~raoul-snyman/openlp/remotes-bugs/+merge/50798

Fixed a bug where the settings for remotes was not actually used.
-- 
https://code.launchpad.net/~raoul-snyman/openlp/remotes-bugs/+merge/50798
Your team OpenLP Core is requested to review the proposed merge of lp:~raoul-snyman/openlp/remotes-bugs into lp:openlp.
=== modified file 'openlp/plugins/remotes/lib/httpserver.py'
--- openlp/plugins/remotes/lib/httpserver.py	2010-12-26 11:04:47 +0000
+++ openlp/plugins/remotes/lib/httpserver.py	2011-02-22 19:31:31 +0000
@@ -68,11 +68,13 @@
         """
         log.debug(u'Start TCP server')
         port = QtCore.QSettings().value(
-            self.parent.settingsSection + u'/remote port',
+            self.parent.settingsSection + u'/port',
             QtCore.QVariant(4316)).toInt()[0]
+        address = QtCore.QSettings().value(
+            self.parent.settingsSection + u'/ip address',
+            QtCore.QVariant(u'0.0.0.0')).toString()
         self.server = QtNetwork.QTcpServer()
-        self.server.listen(QtNetwork.QHostAddress(QtNetwork.QHostAddress.Any),
-            port)
+        self.server.listen(QtNetwork.QHostAddress(address), port)
         QtCore.QObject.connect(Receiver.get_receiver(),
             QtCore.SIGNAL(u'slidecontroller_live_changed'),
             self.slide_change)
@@ -347,4 +349,4 @@
         log.debug(u'close socket')
         self.socket.close()
         self.socket = None
-        self.parent.close_connection(self)
\ No newline at end of file
+        self.parent.close_connection(self)


Follow ups