From 4f900dbffbf0f4ac9abd64eaf979aca9c09bb173 Mon Sep 17 00:00:00 2001 From: Olli Suutari Date: Mon, 15 Aug 2016 19:37:53 +0300 Subject: [PATCH] - 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) --- openlp/core/ui/shortcutlistform.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openlp/core/ui/shortcutlistform.py b/openlp/core/ui/shortcutlistform.py index e23fa0a27..eb91313c9 100644 --- a/openlp/core/ui/shortcutlistform.py +++ b/openlp/core/ui/shortcutlistform.py @@ -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