forked from openlp/openlp
Fixed bug #812289. Forced the mediaitem to get the QListWidgetItem from the list again.
bzr-revno: 1757 Fixes: https://launchpad.net/bugs/812289
This commit is contained in:
commit
57d7cf272b
@ -682,7 +682,7 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
|||||||
text = unicode(self.songBookComboBox.currentText())
|
text = unicode(self.songBookComboBox.currentText())
|
||||||
if item == 0 and text:
|
if item == 0 and text:
|
||||||
temp_song_book = text
|
temp_song_book = text
|
||||||
self.mediaitem.song_maintenance_form.exec_()
|
self.mediaitem.songMaintenanceForm.exec_()
|
||||||
self.loadAuthors()
|
self.loadAuthors()
|
||||||
self.loadBooks()
|
self.loadBooks()
|
||||||
self.loadTopics()
|
self.loadTopics()
|
||||||
|
@ -428,8 +428,11 @@ class SongMediaItem(MediaManagerItem):
|
|||||||
|
|
||||||
def generateSlideData(self, service_item, item=None, xmlVersion=False,
|
def generateSlideData(self, service_item, item=None, xmlVersion=False,
|
||||||
remote=False):
|
remote=False):
|
||||||
log.debug(u'generateSlideData (%s:%s)' % (service_item, item))
|
log.debug(u'generateSlideData: %s, %s, %s' % (service_item, item, self.remoteSong))
|
||||||
item_id = self._getIdOfItemToGenerate(item, self.remoteSong)
|
# The ``None`` below is a workaround for bug #812289 - I think that Qt
|
||||||
|
# deletes the item somewhere along the line because the user is taking
|
||||||
|
# so long to update their item (or something weird like that).
|
||||||
|
item_id = self._getIdOfItemToGenerate(None, self.remoteSong)
|
||||||
service_item.add_capability(ItemCapabilities.CanEdit)
|
service_item.add_capability(ItemCapabilities.CanEdit)
|
||||||
service_item.add_capability(ItemCapabilities.CanPreview)
|
service_item.add_capability(ItemCapabilities.CanPreview)
|
||||||
service_item.add_capability(ItemCapabilities.CanLoop)
|
service_item.add_capability(ItemCapabilities.CanLoop)
|
||||||
|
Loading…
Reference in New Issue
Block a user