forked from openlp/openlp
Add check for connect before calling connect on doubleclick
This commit is contained in:
parent
187dee6217
commit
054be0135a
@ -413,10 +413,11 @@ class ProjectorManager(OpenLPMixin, RegistryMixin, QtGui.QWidget, Ui_ProjectorMa
|
|||||||
|
|
||||||
def on_doubleclick_item(self, item, opt=None):
|
def on_doubleclick_item(self, item, opt=None):
|
||||||
projector = item.data(QtCore.Qt.UserRole)
|
projector = item.data(QtCore.Qt.UserRole)
|
||||||
try:
|
if projector.link.state() != projector.link.ConnectedState:
|
||||||
projector.link.connect_to_host()
|
try:
|
||||||
except:
|
projector.link.connect_to_host()
|
||||||
pass
|
except:
|
||||||
|
pass
|
||||||
return
|
return
|
||||||
|
|
||||||
def on_connect_projector(self, opt=None):
|
def on_connect_projector(self, opt=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user