Changing shortcut to a key that is already used produces traceback

Bug #1612187 reported by Azaziah
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Fix Committed
Low
Azaziah

Bug Description

Changing shortcut to a key that is already used produces traceback.

Traceback (most recent call last):
  File "E:\bzr\openlp\trunk\openlp\core\ui\shortcutlistform.py", line 97, in keyReleaseEvent
    if self._validiate_shortcut(self._current_item_action(), key_sequence):
  File "E:\bzr\openlp\trunk\openlp\core\ui\shortcutlistform.py", line 433, in _validiate_shortcut
    text, for_display=True)
TypeError: warning_message() got an unexpected keyword argument 'for_display'

Trunk rev 2690 | Win 10

Related branches

Revision history for this message
Azaziah (suutari-olli) wrote :

        if not is_valid:
            text = translate('OpenLP.ShortcutListDialog',
                             'The shortcut "{key}" is already assigned to another action, 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) <<<< THIS = TRACEBACK
            self.dialog_was_shown = True
        return is_valid

        if not is_valid:
            text = translate('OpenLP.ShortcutListDialog',
                             'The shortcut "{key}" is already assigned to another action, 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 < FIX?
            self.dialog_was_shown = True
        return is_valid

Changed in openlp:
assignee: nobody → Azaziah (suutari-olli)
Phill (phill-ridout)
Changed in openlp:
status: New → In Progress
Azaziah (suutari-olli)
Changed in openlp:
importance: Undecided → Low
Tim Bentley (trb143)
Changed in openlp:
status: In Progress → Fix Committed
milestone: none → 2.5.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.