diff --git a/openlp/core/lib/projector/pjlink1.py b/openlp/core/lib/projector/pjlink1.py index f773fb7dd..014bb1efc 100644 --- a/openlp/core/lib/projector/pjlink1.py +++ b/openlp/core/lib/projector/pjlink1.py @@ -467,7 +467,7 @@ class PJLink1(QTcpSocket): return self.send_busy = True log.debug('(%s) _sed_string(): Sending "%s"' % (self.ip, out)) - log.debug('(%s) _send_string(): Queue = %s' % ( self.ip, self.send_queue)) + log.debug('(%s) _send_string(): Queue = %s' % (self.ip, self.send_queue)) try: self.projectorNetwork.emit(S_NETWORK_SENDING) sent = self.write(out) @@ -637,11 +637,11 @@ class PJLink1(QTcpSocket): Error status. See PJLink Specifications for format. """ try: - dontcare = int(data) + datacheck = int(data) except ValueError: # Bad data - ignore return - if int(data) == 0: + if datacheck == 0: self.projector_errors = None else: self.projector_errors = {} diff --git a/openlp/core/ui/projector/manager.py b/openlp/core/ui/projector/manager.py index df94e2c64..93b15537a 100644 --- a/openlp/core/ui/projector/manager.py +++ b/openlp/core/ui/projector/manager.py @@ -259,7 +259,6 @@ class ProjectorManager(OpenLPMixin, RegistryMixin, QtGui.QWidget, Ui_ProjectorMa self.projector_form.edit_page.editProjector.connect(self.edit_projector_from_wizard) self.projector_list_widget.itemSelectionChanged.connect(self.update_icons) - def context_menu(self, point): """ Build the Right Click Context menu and set state.