This commit is contained in:
Ken Roberts 2014-10-15 10:38:39 -07:00
parent f468fbb47d
commit 8ea0917230
2 changed files with 3 additions and 4 deletions

View File

@ -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 = {}

View File

@ -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.