Bug 82909
Summary: | closing outline triangle results in error to console | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Scott R. Godin <rhbugzilla> |
Component: | redhat-config-mouse | Assignee: | Brent Fox <bfox> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-01-28 20:10:35 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Scott R. Godin
2003-01-28 13:41:55 UTC
I believe that this bug has already been fixed in Rawhide. The problem was that the program was allowing you to click the OK button even though no mouse was currently selected in the list because the focus was now on the tree root (the Manufacturer) instead of the branch (the actual mouse name). This caused the program to write out a config file with no mouse. Then, when running the program again, it would crash because the config file was messed up. redhat-config-mouse no longer allows you to click OK if no mouse is selected, so this bug should no longer happen. QA, please verify with the latest tree. not sure.. The problem occurred before even getting anywhere near the OK button. A mouse was definitely selected in the window, even when re-starting the app .. just when you go and click the down-pointing outline triangle to turn it into a right-pointing one, is when you see the error message to the console (immediately. LONG before clicking the OK button). Oh, right. The selectMouse() function gets called every time you select a mouse in the list. In the event that you selected the triangle, it would try to get the value of the GtkTreeIter, which of course the triangle doesn't have an iter associated with it. I added a check a number of months ago that avoids this bug by calling a "return" early in the function if the iter does not exist. def selectMouse(self, selection, *args): model, iter = selection.get_selected() if not iter: return type = self.mouseStore.get_value(iter, 2) emu3 = self.mouseStore.get_value(iter, 3) The "if" check above will return from the selectMouse function before it tries to call a get_value for the iter (which does not exist). I'm certain that this bug doesn't occur in versions 1.0.3-4 and later. |