← Back to team overview

phatch-dev team mailing list archive

[Bug 529429] Re: Index error in the actions dialog

 

** Changed in: phatch
   Importance: Undecided => Low

** Changed in: phatch
       Status: New => Confirmed

** Changed in: phatch
    Milestone: None => 0.2.7

-- 
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!: Confirmed

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.





References