Long lines

This commit is contained in:
Jon Tibble 2010-06-22 00:38:54 +01:00
parent 979129ebe7
commit 70df49476d
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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):