diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-07-22 04:59:16 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-07-22 04:59:16 +0000 |
commit | d76a35916e7a0adb11e549d30aae2ae8188e1b79 (patch) | |
tree | 01b4cb8367a1bb3f82f31175a2052d0a472b4c2d | |
parent | cc811d1e7dd69db98504c4afc49738e2ad0957ac (diff) | |
download | anaconda-d76a35916e7a0adb11e549d30aae2ae8188e1b79.tar.gz anaconda-d76a35916e7a0adb11e549d30aae2ae8188e1b79.tar.xz anaconda-d76a35916e7a0adb11e549d30aae2ae8188e1b79.zip |
fix default fstype in gui to give the right default format type on preexisting nonsupported partition types
-rw-r--r-- | iw/partition_gui.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/iw/partition_gui.py b/iw/partition_gui.py index 9f68fe5b0..727ca7f41 100644 --- a/iw/partition_gui.py +++ b/iw/partition_gui.py @@ -407,6 +407,10 @@ def createFSTypeMenu(fstype, fstypechangeCB, mountCombo, availablefstypes=None): names = availablefstypes else: names = types.keys() + if fstype and fstype.isSupported() and fstype.isFormattable(): + default = fstype + else: + default = fileSystemTypeGetDefault() names.sort() defindex = None @@ -419,7 +423,7 @@ def createFSTypeMenu(fstype, fstypechangeCB, mountCombo, availablefstypes=None): item = GtkMenuItem(name) item.set_data ("type", types[name]) fstypeoptionMenu.add(item) - if fstype and fstype.getName() == name: + if default and default.getName() == name: defindex = i defismountable = types[name].isMountable() if fstypechangeCB and mountCombo: |