phatch-dev team mailing list archive
-
phatch-dev team
-
Mailing list archive
-
Message #01120
[Bug 529429] Re: Index error in the actions dialog
$ bzr commit
Committing to: /home/stani/sync/python/phatch/repo/trunk/
modified phatch/lib/pyWx/vlistTag.py
modified phatch/pyWx/dialogs.py
Committed revision 1651.
** Changed in: phatch
Status: In Progress => Fix Committed
--
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!: Fix Committed
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