summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2007-11-19 10:17:14 +0100
committerMartin Sivak <msivak@redhat.com>2008-01-10 19:04:23 +0100
commit346fb7ffe2152482b1d32337b1bac23ef80490a9 (patch)
tree9bd97d91aa7d7e3c0fafdf2d54ebbe7cb6be0306
parentee2eee491a9467b5399c994f7cb6249d76947a89 (diff)
downloadanaconda-346fb7ffe2152482b1d32337b1bac23ef80490a9.tar.gz
anaconda-346fb7ffe2152482b1d32337b1bac23ef80490a9.tar.xz
anaconda-346fb7ffe2152482b1d32337b1bac23ef80490a9.zip
Fix the selected device when disabling entries in Add advanced drive dialog. (#248447)
-rw-r--r--iw/autopart_type.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/iw/autopart_type.py b/iw/autopart_type.py
index 47d57f143..43a9ce0a7 100644
--- a/iw/autopart_type.py
+++ b/iw/autopart_type.py
@@ -209,6 +209,14 @@ class PartitionTypeWindow(InstallWindow):
import iscsi
if not iscsi.has_iscsi():
dxml.get_widget("iscsiRadio").set_sensitive(False)
+ dxml.get_widget("iscsiRadio").set_active(False)
+
+ #figure out what advanced devices we have available and set sensible default
+ group = dxml.get_widget("iscsiRadio").get_group()
+ for button in group:
+ if button is not None and button.get_property("sensitive"):
+ button.set_active(True)
+ break
rc = dialog.run()
dialog.hide()