- 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:
Olli Suutari 2016-08-15 19:37:53 +03:00
parent 33aaf53c42
commit 4f900dbffb

View File

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