summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-11-20 16:22:18 +0000
committerErik Troan <ewt@redhat.com>2000-11-20 16:22:18 +0000
commit8bc1d2087a7953e2b9fdbf9554c39926fb78059f (patch)
tree3632381879e81894bf13f61a28160fef5345506d /text.py
parentbf5981a5ff55a10b8eb80174f467d493572f208a (diff)
downloadanaconda-8bc1d2087a7953e2b9fdbf9554c39926fb78059f.tar.gz
anaconda-8bc1d2087a7953e2b9fdbf9554c39926fb78059f.tar.xz
anaconda-8bc1d2087a7953e2b9fdbf9554c39926fb78059f.zip
let install classes set themselves as default
Diffstat (limited to 'text.py')
-rw-r--r--text.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/text.py b/text.py
index d65017c89..1dab8a1b9 100644
--- a/text.py
+++ b/text.py
@@ -197,17 +197,19 @@ class InstallPathWindow:
else:
instClass = todo.getClass()
orig = None
+ default = 0
i = 0
for (name, object, icon) in classes:
if isinstance(instClass, object):
orig = i
break
+ elif object.default:
+ default = i
+
i = i + 1
if (orig):
default = orig
- else:
- default = 0
(button, choice) = ListboxChoiceWindow(screen, _("Installation Type"),
_("What type of system would you like to install?"),