forked from openlp/openlp
- Removed for_display=True which was causing traceback since it's apparently no longer used.
- Added manual row split for the duplicated key error message. (Looks bad to have 12 words in one row and then one word in the row after that)
This commit is contained in:
parent
33aaf53c42
commit
4f900dbffb
@ -426,12 +426,11 @@ class ShortcutListForm(QtWidgets.QDialog, Ui_ShortcutListDialog, RegistryPropert
|
||||
is_valid = False
|
||||
if not is_valid:
|
||||
text = translate('OpenLP.ShortcutListDialog',
|
||||
'The shortcut "{key}" is already assigned to another action, please'
|
||||
' use a different shortcut.'
|
||||
'The shortcut "{key}" is already assigned to another action,\n'
|
||||
'please use a different shortcut.'
|
||||
).format(key=self.get_shortcut_string(key_sequence))
|
||||
self.main_window.warning_message(translate('OpenLP.ShortcutListDialog', 'Duplicate Shortcut'),
|
||||
text)
|
||||
for_display = True
|
||||
self.dialog_was_shown = True
|
||||
return is_valid
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user