diff options
author | Mike Fulbright <msf@redhat.com> | 2003-05-23 16:44:50 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-05-23 16:44:50 +0000 |
commit | 3f19362ad161d568ac4d89a050f0b8711478aab5 (patch) | |
tree | 7e667e3318e907c5a6784eb98427cd5bf1642c98 /iw | |
parent | 3066309f24ea74c03407c92a9077fac9f8cb50fb (diff) | |
download | anaconda-3f19362ad161d568ac4d89a050f0b8711478aab5.tar.gz anaconda-3f19362ad161d568ac4d89a050f0b8711478aab5.tar.xz anaconda-3f19362ad161d568ac4d89a050f0b8711478aab5.zip |
make sure we treat all forms of generic monitors robustly
Diffstat (limited to 'iw')
-rw-r--r-- | iw/xconfig_gui.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/iw/xconfig_gui.py b/iw/xconfig_gui.py index 264983624..6e1b4a8d6 100644 --- a/iw/xconfig_gui.py +++ b/iw/xconfig_gui.py @@ -653,9 +653,12 @@ class MonitorWindow (InstallWindow): keys = monitorslist.keys () keys.sort () - # treat Generic monitors special - keys.remove("Generic") - keys.insert(0, "Generic") + idx = 0 + for man in ["Generic LCD Display", "Generic CRT Display", "Generic"]: + if man in keys: + keys.remove(man) + keys.insert(idx, man) + idx += 1 self.currentMonitor = None toplevels={} @@ -685,8 +688,8 @@ class MonitorWindow (InstallWindow): # now insert rest of monitors, unless we match the ddc probed id for man in keys: models = monitorslist[man] - if man == "Generic": - title = _("Generic") + if man in ["Generic LCD Display", "Generic CRT Display"]: + title = _(man) # dont sort generic, present in order in file else: title = man |