forked from openlp/openlp
Long lines
This commit is contained in:
parent
979129ebe7
commit
70df49476d
@ -76,6 +76,7 @@ class MediaDockManager(object):
|
|||||||
log.debug(u'remove %s dock' % name)
|
log.debug(u'remove %s dock' % name)
|
||||||
for dock_index in range(0, self.media_dock.count()):
|
for dock_index in range(0, self.media_dock.count()):
|
||||||
if self.media_dock.widget(dock_index):
|
if self.media_dock.widget(dock_index):
|
||||||
if self.media_dock.widget(dock_index).settingsSection == name.lower():
|
if self.media_dock.widget(dock_index).settingsSection == \
|
||||||
|
name.lower():
|
||||||
self.media_dock.widget(dock_index).hide()
|
self.media_dock.widget(dock_index).hide()
|
||||||
self.media_dock.removeItem(dock_index)
|
self.media_dock.removeItem(dock_index)
|
||||||
|
@ -85,9 +85,8 @@ class EditCustomForm(QtGui.QDialog, Ui_customEditDialog):
|
|||||||
|
|
||||||
def onPreview(self, button):
|
def onPreview(self, button):
|
||||||
log.debug(u'onPreview')
|
log.debug(u'onPreview')
|
||||||
if button.text() == \
|
if button.text() == unicode(translate('CustomPlugin.EditCustomForm',
|
||||||
unicode(translate('CustomPlugin.EditCustomForm', 'Save && Preview')) \
|
'Save && Preview')) and self.saveCustom():
|
||||||
and self.saveCustom():
|
|
||||||
Receiver.send_message(u'custom_preview')
|
Receiver.send_message(u'custom_preview')
|
||||||
|
|
||||||
def initialise(self):
|
def initialise(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user