Add check for connect before calling connect on doubleclick

This commit is contained in:
Ken Roberts 2014-10-16 14:21:01 -07:00
parent 187dee6217
commit 054be0135a
1 changed files with 5 additions and 4 deletions

View File

@ -413,10 +413,11 @@ class ProjectorManager(OpenLPMixin, RegistryMixin, QtGui.QWidget, Ui_ProjectorMa
def on_doubleclick_item(self, item, opt=None):
projector = item.data(QtCore.Qt.UserRole)
try:
projector.link.connect_to_host()
except:
pass
if projector.link.state() != projector.link.ConnectedState:
try:
projector.link.connect_to_host()
except:
pass
return
def on_connect_projector(self, opt=None):