← Back to team overview

phatch-dev team mailing list archive

[Bug 529429] [NEW] Index error in the actions dialog

 

Public bug reported:

If you type in the dialog search box a name that doesn't exist and then
press enter you'll get this error:

Traceback (most recent call last):
  File "/home/nadia/projects/phatch/phatch/pyWx/gui.py", line 654, in on_menu_edit_add
    label = self.dialog_actions.GetStringSelection()
  File "/home/nadia/projects/phatch/phatch/pyWx/dialogs.py", line 486, in GetStringSelection
    return self.GetListBox().GetStringSelection()
  File "/home/nadia/projects/phatch/phatch/pyWx/dialogs.py", line 446, in GetStringSelection
    return self.actions[self.GetSelection()].label
IndexError: list index out of range

Instead the enter should not work, just like the how the Add button is
disabled when there are no matches.

** Affects: phatch
     Importance: Undecided
         Status: New

-- 
Index error in the actions dialog
https://bugs.launchpad.net/bugs/529429
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.

Status in Phatch = Photo & Batch!: New

Bug description:
If you type in the dialog search box a name that doesn't exist and then press enter you'll get this error:

Traceback (most recent call last):
  File "/home/nadia/projects/phatch/phatch/pyWx/gui.py", line 654, in on_menu_edit_add
    label = self.dialog_actions.GetStringSelection()
  File "/home/nadia/projects/phatch/phatch/pyWx/dialogs.py", line 486, in GetStringSelection
    return self.GetListBox().GetStringSelection()
  File "/home/nadia/projects/phatch/phatch/pyWx/dialogs.py", line 446, in GetStringSelection
    return self.actions[self.GetSelection()].label
IndexError: list index out of range

Instead the enter should not work, just like the how the Add button is disabled when there are no matches.





Follow ups

References