From 81f26dd9a3c56781e4604d22b448ec872dd69746 Mon Sep 17 00:00:00 2001 From: Ken Roberts Date: Thu, 16 Oct 2014 20:09:42 -0700 Subject: [PATCH] pep8 and extra logging info --- openlp/core/lib/projector/pjlink1.py | 5 ++++- openlp/core/ui/projector/manager.py | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/openlp/core/lib/projector/pjlink1.py b/openlp/core/lib/projector/pjlink1.py index e82212215..6b5259929 100644 --- a/openlp/core/lib/projector/pjlink1.py +++ b/openlp/core/lib/projector/pjlink1.py @@ -761,7 +761,10 @@ class PJLink1(QTcpSocket): if abort: self.change_status(E_NOT_CONNECTED) else: - self.change_status(S_NOT_CONNECTED) + log.debug('(%s) disconnect_from_host() Current status %s' % (self.ip, + self._get_status(self.status_connect)[0])) + if self.status_connect != E_NOT_CONNECTED: + self.change_status(S_NOT_CONNECTED) self.reset_information() self.projectorUpdateIcons.emit() diff --git a/openlp/core/ui/projector/manager.py b/openlp/core/ui/projector/manager.py index 330d530d8..faf273b70 100644 --- a/openlp/core/ui/projector/manager.py +++ b/openlp/core/ui/projector/manager.py @@ -361,7 +361,8 @@ class ProjectorManager(OpenLPMixin, RegistryMixin, QtGui.QWidget, Ui_ProjectorMa for item in source_list.keys(): sort.append(item) sort.sort() - current = QtGui.QLabel(translate('OpenLP.ProjectorManager', 'Current source is %s' % source_list[projector.link.source])) + current = QtGui.QLabel(translate('OpenLP.ProjectorManager', 'Current source is %s' % + source_list[projector.link.source])) layout.addWidget(current) for item in sort: button = self._select_input_widget(parent=self,