forked from openlp/openlp
Fix oops
This commit is contained in:
parent
f51132e876
commit
07468f0093
@ -284,9 +284,9 @@ class ActionList(object):
|
||||
actions.append(action)
|
||||
ActionList.shortcut_map[shortcuts[0]] = actions
|
||||
else:
|
||||
log.warning('Shortcut "{shortcut}" is removed from "{action}" ''
|
||||
because another action already uses this shortcut.'.format(shortcut=shortcuts[0],
|
||||
action=action.objectName()))
|
||||
log.warning('Shortcut "{shortcut}" is removed from "{action}" '
|
||||
'because another action already uses this shortcut.'.format(shortcut=shortcuts[0],
|
||||
action=action.objectName()))
|
||||
shortcuts.remove(shortcuts[0])
|
||||
action.setShortcuts([QtGui.QKeySequence(shortcut) for shortcut in shortcuts])
|
||||
|
||||
|
@ -496,7 +496,7 @@ class Settings(QtCore.QSettings):
|
||||
item = settings.value('{name} {counter:d}'.format(name=plugin.name, counter=counter), '')
|
||||
if item:
|
||||
files_list.append(item)
|
||||
settings.remove('{name} {counter:d}'.format=(plugin.name, counter))
|
||||
settings.remove('{name} {counter:d}'.format(name=plugin.name, counter=counter))
|
||||
settings.remove('{name} count'.format(name=plugin.name))
|
||||
settings.endGroup()
|
||||
return files_list
|
||||
|
@ -218,5 +218,5 @@ class TestProjectorDB(TestCase):
|
||||
model.name = 'OpenLP Test'
|
||||
|
||||
# THEN: __repr__ should return a proper string
|
||||
self.assertEqual(str(model), '<Model(name="OpenLP Test")>',
|
||||
self.assertEqual(str(model), '<Model(name='"OpenLP Test"')>',
|
||||
'Model.__repr__() should have returned a proper representation string')
|
||||
|
Loading…
Reference in New Issue
Block a user