forked from openlp/openlp
Fix Presentation file filter
Fix Cancel for song verse editor bzr-revno: 702
This commit is contained in:
commit
326ad6b7ff
@ -68,7 +68,7 @@ class PresentationMediaItem(MediaManagerItem):
|
|||||||
if self.controllers[controller].enabled:
|
if self.controllers[controller].enabled:
|
||||||
for type in self.controllers[controller].supports:
|
for type in self.controllers[controller].supports:
|
||||||
if fileType.find(type) == -1:
|
if fileType.find(type) == -1:
|
||||||
fileType += type + u' '
|
fileType += u'*%s ' % type
|
||||||
self.OnNewFileMasks = self.trUtf8('Presentations (%s)' % fileType)
|
self.OnNewFileMasks = self.trUtf8('Presentations (%s)' % fileType)
|
||||||
|
|
||||||
def requiredIcons(self):
|
def requiredIcons(self):
|
||||||
|
@ -316,7 +316,7 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
|||||||
|
|
||||||
def onVerseAddButtonClicked(self):
|
def onVerseAddButtonClicked(self):
|
||||||
self.verse_form.setVerse(u'', self.VerseListWidget.count() + 1, True)
|
self.verse_form.setVerse(u'', self.VerseListWidget.count() + 1, True)
|
||||||
self.verse_form.exec_()
|
if self.verse_form.exec_():
|
||||||
afterText, verse, subVerse = self.verse_form.getVerse()
|
afterText, verse, subVerse = self.verse_form.getVerse()
|
||||||
data = u'%s:%s' %(verse, subVerse)
|
data = u'%s:%s' %(verse, subVerse)
|
||||||
item = QtGui.QListWidgetItem(afterText)
|
item = QtGui.QListWidgetItem(afterText)
|
||||||
@ -331,7 +331,7 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
|||||||
verseId = unicode((item.data(QtCore.Qt.UserRole)).toString())
|
verseId = unicode((item.data(QtCore.Qt.UserRole)).toString())
|
||||||
self.verse_form.setVerse(tempText, \
|
self.verse_form.setVerse(tempText, \
|
||||||
self.VerseListWidget.count(), True, verseId)
|
self.VerseListWidget.count(), True, verseId)
|
||||||
self.verse_form.exec_()
|
if self.verse_form.exec_():
|
||||||
afterText, verse, subVerse = self.verse_form.getVerse()
|
afterText, verse, subVerse = self.verse_form.getVerse()
|
||||||
data = u'%s:%s' %(verse, subVerse)
|
data = u'%s:%s' %(verse, subVerse)
|
||||||
item.setData(QtCore.Qt.UserRole, QtCore.QVariant(data))
|
item.setData(QtCore.Qt.UserRole, QtCore.QVariant(data))
|
||||||
|
@ -1 +1 @@
|
|||||||
1.9.0-701
|
1.9.0-702
|
||||||
|
Loading…
Reference in New Issue
Block a user