forked from openlp/openlp
clean up
This commit is contained in:
parent
1fe4e0a56a
commit
b0585297fb
@ -214,8 +214,7 @@ class ExceptionForm(QtGui.QDialog, Ui_ExceptionDialog):
|
|||||||
|
|
||||||
def onAttachFileButtonClicked(self):
|
def onAttachFileButtonClicked(self):
|
||||||
files = QtGui.QFileDialog.getOpenFileName(
|
files = QtGui.QFileDialog.getOpenFileName(
|
||||||
self,translate('ImagePlugin.ExceptionDialog',
|
self, translate('ImagePlugin.ExceptionDialog', 'Select Attachment'),
|
||||||
'Select Attachment'),
|
|
||||||
SettingsManager.get_last_dir(u'exceptions'),
|
SettingsManager.get_last_dir(u'exceptions'),
|
||||||
u'%s (*.*) (*)' % UiStrings().AllFiles)
|
u'%s (*.*) (*)' % UiStrings().AllFiles)
|
||||||
log.info(u'New files(s) %s', unicode(files))
|
log.info(u'New files(s) %s', unicode(files))
|
||||||
|
@ -339,7 +339,7 @@ class WebkitPlayer(MediaPlayer):
|
|||||||
else:
|
else:
|
||||||
display.frame.evaluateJavaScript(u'show_video("play");')
|
display.frame.evaluateJavaScript(u'show_video("play");')
|
||||||
if start_time > 0:
|
if start_time > 0:
|
||||||
self.seek(display, controller.media_info.start_time*1000)
|
self.seek(display, controller.media_info.start_time * 1000)
|
||||||
# TODO add playing check and get the correct media length
|
# TODO add playing check and get the correct media length
|
||||||
controller.media_info.length = length
|
controller.media_info.length = length
|
||||||
self.state = MediaState.Playing
|
self.state = MediaState.Playing
|
||||||
|
Loading…
Reference in New Issue
Block a user