summaryrefslogtreecommitdiffstats
path: root/iw/installpath.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-09-22 15:14:45 +0000
committerErik Troan <ewt@redhat.com>1999-09-22 15:14:45 +0000
commitf19c3d03efab17f46c2df80bec5f39db9d7b0aec (patch)
treed2e17298f5803a8da9c377d10147afdaf82933f0 /iw/installpath.py
parent5e3126de2a42231e336bbc3d7e10c73e17b1a48c (diff)
downloadanaconda-f19c3d03efab17f46c2df80bec5f39db9d7b0aec.tar.gz
anaconda-f19c3d03efab17f46c2df80bec5f39db9d7b0aec.tar.xz
anaconda-f19c3d03efab17f46c2df80bec5f39db9d7b0aec.zip
fixed default install class setting and resetting
Diffstat (limited to 'iw/installpath.py')
-rw-r--r--iw/installpath.py25
1 files changed, 16 insertions, 9 deletions
diff --git a/iw/installpath.py b/iw/installpath.py
index d58b12999..99b40c695 100644
--- a/iw/installpath.py
+++ b/iw/installpath.py
@@ -108,13 +108,13 @@ class InstallPathWindow (InstallWindow):
if button.get_active():
break
- if type == WORKSTATION_GNOME:
+ if type == WORKSTATION_GNOME and self.orig != WORKSTATION_GNOME:
self.todo.setClass (installclass.GNOMEWorkstation ())
- elif type == WORKSTATION_KDE:
+ elif type == WORKSTATION_KDE and self.orig != WORKSTATION_KDE:
self.todo.setClass (installclass.KDEWorkstation ())
- elif type == SERVER:
+ elif type == SERVER and self.orig != SERVER:
self.todo.setClass (installclass.Server ())
- else:
+ elif type == CUSTOM and self.orig != CUSTOM:
self.todo.setClass (installclass.CustomInstall ())
def toggled (self, widget, type):
@@ -161,17 +161,24 @@ class InstallPathWindow (InstallWindow):
if (self.todo.upgrade):
self.upgradeButton.set_active(1)
- default = None
+ self.orig = None
else:
instClass = self.todo.getClass()
- default = WORKSTATION_GNOME
+ self.orig = None
installButton.set_active(1)
if isinstance(instClass, installclass.GNOMEWorkstation):
- default = WORKSTATION_GNOME
+ self.orig = WORKSTATION_GNOME
elif isinstance(instClass, installclass.KDEWorkstation):
- default = WORKSTATION_KDE
+ self.orig = WORKSTATION_KDE
elif isinstance(instClass, installclass.Server):
- default = SERVER
+ self.orig = SERVER
+ elif isinstance(instClass, installclass.CustomInstall):
+ self.orig = CUSTOM
+
+ if (self.orig):
+ default = self.orig
+ else:
+ default = WORKSTATION_GNOME
self.installBox = GtkVBox (FALSE, 0)
group = None