diff options
author | Mike Fulbright <msf@redhat.com> | 2003-01-14 22:55:03 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-01-14 22:55:03 +0000 |
commit | 223e502d92592d5ce932c0f0ae34bdfaae7f332e (patch) | |
tree | 7d75899c54c6efbb851b1e8a07de4ca6b7925c0b /textw | |
parent | 2285e54659b2787cfbe0e4a3a6c12db12afc25a9 (diff) | |
download | anaconda-223e502d92592d5ce932c0f0ae34bdfaae7f332e.tar.gz anaconda-223e502d92592d5ce932c0f0ae34bdfaae7f332e.tar.xz anaconda-223e502d92592d5ce932c0f0ae34bdfaae7f332e.zip |
should fix some issues with monitor selection
Diffstat (limited to 'textw')
-rw-r--r-- | textw/xconfig_text.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/textw/xconfig_text.py b/textw/xconfig_text.py index 66e198835..941ce147e 100644 --- a/textw/xconfig_text.py +++ b/textw/xconfig_text.py @@ -384,6 +384,13 @@ class MonitorWindow: "31.5", "50-61") else: selMonitor = self.monitor.lookupMonitorByName(selMonitorName) + + # if lookup failed fail back to unprobed monitor + # should fix reports of tracebacks because selMonitor was None + if selMonitor is None: + selMonitor = (unprobed_monitor_string, + unprobed_monitor_string, + "31.5", "50-61") bb = ButtonBar (screen, (TEXT_OK_BUTTON, (_("Default"), "default"), TEXT_BACK_BUTTON)) @@ -453,16 +460,19 @@ class MonitorWindow: # store results selMonitorName = self.currentMonitor if selMonitorName[:len(ddc_monitor_string)] == ddc_monitor_string: - selMonitor = self.ddcmon + selMonitor = ("DDCPROBED",) + self.ddcmon[1:] + elif selMonitorName == unprobed_monitor_string: selMonitor = (unprobed_monitor_string, unprobed_monitor_string, "31.5", "50-61") else: selMonitor = self.monitor.lookupMonitorByName(selMonitorName) + # field 1 and two are reverse apparently from what ddcmon returns?! + selMonitor = (selMonitor[1], selMonitor[0], selMonitor[2], selMonitor[3]) if selMonitor: self.monitor.setSpecs(hval, vval, id=selMonitor[0], - name=selMonitor[0]) + name=selMonitor[1]) # shove into hw state object, force it to recompute available modes self.xsetup.xhwstate.monitor = self.monitor |