summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-01-14 22:55:03 +0000
committerMike Fulbright <msf@redhat.com>2003-01-14 22:55:03 +0000
commit223e502d92592d5ce932c0f0ae34bdfaae7f332e (patch)
tree7d75899c54c6efbb851b1e8a07de4ca6b7925c0b /iw
parent2285e54659b2787cfbe0e4a3a6c12db12afc25a9 (diff)
downloadanaconda-223e502d92592d5ce932c0f0ae34bdfaae7f332e.tar.gz
anaconda-223e502d92592d5ce932c0f0ae34bdfaae7f332e.tar.xz
anaconda-223e502d92592d5ce932c0f0ae34bdfaae7f332e.zip
should fix some issues with monitor selection
Diffstat (limited to 'iw')
-rw-r--r--iw/xconfig_gui.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/iw/xconfig_gui.py b/iw/xconfig_gui.py
index 1ac3c0ce2..852fb0972 100644
--- a/iw/xconfig_gui.py
+++ b/iw/xconfig_gui.py
@@ -423,10 +423,13 @@ class MonitorWindow (InstallWindow):
if self.currentMonitor[:len(ddc_monitor_string)] == ddc_monitor_string:
idname = "DDCPROBED"
+ monname = self.currentMonitor[len(ddc_monitor_string)+3:]
elif self.currentMonitor == unprobed_monitor_string:
idname = "Unprobed Monitor"
+ monname = "Unprobed Monitor"
else:
idname = self.currentMonitor
+ monname = self.currentMonitor
# XXX - this is messed up - we set the monitor object in instdata
# to the current values, then we have to push it into the
@@ -434,7 +437,7 @@ class MonitorWindow (InstallWindow):
self.monitor.setSpecs(monHoriz,
monVert,
id=idname,
- name=self.currentMonitor)
+ name=monname)
# shove into hw state object, force it to recompute available modes
self.xsetup.xhwstate.monitor = self.monitor
@@ -645,20 +648,22 @@ class MonitorWindow (InstallWindow):
#--Add a category for a DDC probed monitor if a DDC monitor was probed
self.ddcmon = self.monitor.getDDCProbeResults()
if self.ddcmon:
- title = ddc_monitor_string + " - " + self.ddcmon[1]
+ title = ddc_monitor_string
+ monentry = title + " - " + self.ddcmon[1]
else:
title = unprobed_monitor_string
+ monentry = title
man = title
toplevels[man] = self.monitorstore.append(None)
self.monitorstore.set_value(toplevels[man], 0, title)
iter = self.monitorstore.append(toplevels[man])
- self.monitorstore.set_value(iter, 0, title)
+ self.monitorstore.set_value(iter, 0, monentry)
# set as current monitor if necessary
if self.origMonitorID == "DDCPROBED" or self.origMonitorID == "Unprobed Monitor":
- self.currentMonitor = title
- self.origMonitorName = title
+ self.currentMonitor = monentry
+ self.origMonitorName = monentry
# now insert rest of monitors, unless we match the ddc probed id
for man in keys: