system-config-kickstart: Traceback: on_list_view_row_activated

Bug #409270 reported by Brent Fox on 2009-08-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
system-config-kickstart (Ubuntu)
Undecided
Colin Watson

Bug Description

Binary package hint: system-config-kickstart

Description: Ubuntu karmic (development branch)
Release: 9.10

system-config-kickstart:
  Installed: 2.5.20-0ubuntu19
  Candidate: 2.5.20-0ubuntu19
  Version table:
 *** 2.5.20-0ubuntu19 0
        500 http://us.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

Description: When running system-config-kickstart from the command line, you get the following traceback:
Traceback (most recent call last):
  File "/home/bfox/packages/system-config-kickstart/karmic-orig/system-config-kickstart-2.5.20/src/kickstartGui.py", line 188, in on_list_view_row_activated
    category = self.category_store.get_value(iter, 0)
TypeError: iter must be a GtkTreeIter

This is due to the event handler for the category_store being hooked up before the self.toplevel.show() call. So, when the program launches, it triggers a call to the on_list_view_row_activated() function, which in turn calls a get_selection() on the GtkTreeView that has no selection made.

I'm attaching a patch that hooks up the event handlers after the call to self.toplevel.show()

Brent Fox (brent-s-fox) wrote :
Colin Watson (cjwatson) on 2009-08-11
Changed in system-config-kickstart (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
status: New → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-kickstart - 2.5.20-0ubuntu20

---------------
system-config-kickstart (2.5.20-0ubuntu20) karmic; urgency=low

  [ Brent Fox ]
  * Fix GtkSpinButton warnings (LP: #409261).
  * Hook up event handlers after calling self.toplevel.show() (LP: #409270).
  * Print usage message on getopt errors (LP: #409352).
  * Add ext4 to supported filesystem types (LP: #409368).
  * Print a proper error if file opens fail (LP: #409554).

 -- Colin Watson <email address hidden> Tue, 11 Aug 2009 14:19:34 +0100

Changed in system-config-kickstart (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers