forked from openlp/openlp
removed not needed variable, removed obsolete comments
This commit is contained in:
parent
869ab41cad
commit
dc2bafaab9
@ -984,7 +984,6 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
"""
|
"""
|
||||||
bible = unicode(self.quickVersionComboBox.currentText())
|
bible = unicode(self.quickVersionComboBox.currentText())
|
||||||
search_results = self.plugin.manager.get_verses(bible, string, False, False)
|
search_results = self.plugin.manager.get_verses(bible, string, False, False)
|
||||||
results = []
|
|
||||||
if search_results:
|
if search_results:
|
||||||
versetext = u' '.join([verse.text for verse in search_results])
|
versetext = u' '.join([verse.text for verse in search_results])
|
||||||
return [[string, versetext]]
|
return [[string, versetext]]
|
||||||
|
@ -139,8 +139,6 @@ class MediaMediaItem(MediaManagerItem):
|
|||||||
self.mediaObject.clearQueue()
|
self.mediaObject.clearQueue()
|
||||||
self.mediaObject.setCurrentSource(Phonon.MediaSource(filename))
|
self.mediaObject.setCurrentSource(Phonon.MediaSource(filename))
|
||||||
if not self.mediaStateWait(Phonon.StoppedState):
|
if not self.mediaStateWait(Phonon.StoppedState):
|
||||||
# Due to string freeze, borrow a message from presentations
|
|
||||||
# This will be corrected in 1.9.6
|
|
||||||
critical_error_message_box(UiStrings().UnsupportedFile,
|
critical_error_message_box(UiStrings().UnsupportedFile,
|
||||||
UiStrings().UnsupportedFile)
|
UiStrings().UnsupportedFile)
|
||||||
return False
|
return False
|
||||||
@ -150,8 +148,6 @@ class MediaMediaItem(MediaManagerItem):
|
|||||||
if not self.mediaStateWait(Phonon.PlayingState) \
|
if not self.mediaStateWait(Phonon.PlayingState) \
|
||||||
or self.mediaObject.currentSource().type() \
|
or self.mediaObject.currentSource().type() \
|
||||||
== Phonon.MediaSource.Invalid:
|
== Phonon.MediaSource.Invalid:
|
||||||
# Due to string freeze, borrow a message from presentations
|
|
||||||
# This will be corrected in 1.9.6
|
|
||||||
self.mediaObject.stop()
|
self.mediaObject.stop()
|
||||||
critical_error_message_box(UiStrings().UnsupportedFile,
|
critical_error_message_box(UiStrings().UnsupportedFile,
|
||||||
UiStrings().UnsupportedFile)
|
UiStrings().UnsupportedFile)
|
||||||
|
Loading…
Reference in New Issue
Block a user