Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 755542 - when no model selected I can press OK without any response
when no model selected I can press OK without any response
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: system-config-display (Show other bugs)
5.8
All Linux
medium Severity medium
: rc
: ---
Assigned To: Adam Jackson
Desktop QE
:
Depends On:
Blocks: 758797
  Show dependency treegraph
 
Reported: 2011-11-21 07:43 EST by Vladimir Benes
Modified: 2012-02-21 01:47 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-02-21 01:47:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0285 normal SHIPPED_LIVE system-config-display, rhpxl, and pyxf86config bug fix update 2012-02-20 10:05:49 EST

  None (edit)
Description Vladimir Benes 2011-11-21 07:43:32 EST
Description of problem:
when I run s-c-d, enable dualhead and press OK while no monitor selected, I will get dialog to select monitor. If I cancel and press OK I can see traceback
Traceback (most recent call last):
  File "/usr/share/system-config-display/xConfigDialog.py", line 125, in ok
    self.second_monitor_model, self.second_monitor_vrefresh, self.second_monitor_hsync = self.second_monitor_dialog.dehydrate_second_monitor(self.state)
  File "/usr/share/system-config-display/monitorDialog.py", line 213, in dehydrate_second_monitor
    return model, vsync, hsync
UnboundLocalError: local variable 'model' referenced before assignment

but whatmore when I want to select the monitor now.. I will get another traceback
UnboundLocalError: local variable 'model' referenced before assignment
Traceback (most recent call last):
  File "/usr/share/system-config-display/xConfigDialog.py", line 391, in configure_second_monitor
    self.second_monitor_dialog.goto_path()
  File "/usr/share/system-config-display/monitorDialog.py", line 110, in goto_path
    self.tree_view.expand_row(self.probed_path[:-1], TRUE)
TypeError: could not convert path to a GtkTreePath

should I file another bug for it or can we fix it in this one?

Version-Release number of selected component (if applicable):
system-config-display-1.0.48-2.el5

How reproducible:
100%

Steps to Reproduce:
1.execute s-c-d in terminal
2.enable dual-head
3.click OK
4.click cancel in Monitor dialog
5.click OK
6.click Configure
  
Actual results:
tracebacks

Expected results:
OK should be greyed out unless Monitor selected or after step 5 we should go back to Monitor dialog again and again

Configure should work every time

Additional info:
I propose to fix this in 5.8 as no other s-c-d is planned in the future for rhel5
Comment 1 Adam Jackson 2011-11-21 14:17:52 EST
Fix in hand, devel ack.
Comment 5 errata-xmlrpc 2012-02-21 01:47:46 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0285.html

Note You need to log in before you can comment on or make changes to this bug.