forked from openlp/openlp
more fixes
This commit is contained in:
parent
5c06b63c5e
commit
9dbd54bf8f
@ -691,9 +691,9 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
Called by the SlideController to request a preview item be made live
|
Called by the SlideController to request a preview item be made live
|
||||||
and allows the next preview to be updated if relevent.
|
and allows the next preview to be updated if relevent.
|
||||||
"""
|
"""
|
||||||
id, row = message.split(u':')
|
uuid, row = message.split(u':')
|
||||||
for sitem in self.serviceItems:
|
for sitem in self.serviceItems:
|
||||||
if sitem[u'service_item']._uuid == id:
|
if sitem[u'service_item']._uuid == uuid:
|
||||||
item = self.serviceManagerList.topLevelItem(sitem[u'order'] - 1)
|
item = self.serviceManagerList.topLevelItem(sitem[u'order'] - 1)
|
||||||
self.serviceManagerList.setCurrentItem(item)
|
self.serviceManagerList.setCurrentItem(item)
|
||||||
self.makeLive(int(row))
|
self.makeLive(int(row))
|
||||||
|
@ -283,19 +283,20 @@ class SongMediaItem(MediaManagerItem):
|
|||||||
self.remoteTriggered = None
|
self.remoteTriggered = None
|
||||||
self.remoteSong = -1
|
self.remoteSong = -1
|
||||||
|
|
||||||
def onRemoteEdit(self, songid):
|
def onRemoteEdit(self, message):
|
||||||
"""
|
"""
|
||||||
Called by ServiceManager or SlideController by event passing
|
Called by ServiceManager or SlideController by event passing
|
||||||
the Song Id in the payload along with an indicator to say which
|
the Song Id in the payload along with an indicator to say which
|
||||||
type of display is required.
|
type of display is required.
|
||||||
"""
|
"""
|
||||||
log.debug(u'onRemoteEdit %s' % songid)
|
log.debug(u'onRemoteEdit %s' % message)
|
||||||
fields = songid.split(u':')
|
remote_type, song_id = message.split(u':')
|
||||||
valid = self.parent.manager.get_object(Song, fields[1])
|
song_id = int(song_id)
|
||||||
|
valid = self.parent.manager.get_object(Song, song_id)
|
||||||
if valid:
|
if valid:
|
||||||
self.remoteSong = fields[1]
|
self.remoteSong = song_id
|
||||||
self.remoteTriggered = fields[0]
|
self.remoteTriggered = remote_type
|
||||||
self.edit_song_form.loadSong(fields[1], (fields[0] == u'P'))
|
self.edit_song_form.loadSong(song_id, (remote_type == u'P'))
|
||||||
self.edit_song_form.exec_()
|
self.edit_song_form.exec_()
|
||||||
|
|
||||||
def onEditClick(self):
|
def onEditClick(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user