← Back to team overview

clicompanion-devs team mailing list archive

[Bug 802303] Re: list index out of range when editing

 

** Changed in: clicompanion
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of CLI
Companion Development Team, which is subscribed to CLI Companion.
https://bugs.launchpad.net/bugs/802303

Title:
  list index out of range when editing

Status in CLI Companion:
  Fix Released

Bug description:
  When running clicompanion, if you edit the last command, and then move
  the command somewhere else on the list, if you click edit again
  (without selecting another command) you get a list index out of range
  error, just because you are not selecting any rows.

  $ clicompanion 
  using locale in system
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/clicompanionlib/controller.py", line 185, in edit_command
      row_int_x = int(view.ROW[0][0])
  IndexError: list index out of range

  Patch appended, just added a simple if to assure that the view.ROW
  object is not null (or empty in this case).

To manage notifications about this bug go to:
https://bugs.launchpad.net/clicompanion/+bug/802303/+subscriptions