Check the resizable property as well as targetSize not being zero (indicates no new targetSize has been set) and finally compare targetSize to currentSize. --- iw/partition_ui_helpers_gui.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py index 4c273f2..9d7f7c5 100644 --- a/iw/partition_ui_helpers_gui.py +++ b/iw/partition_ui_helpers_gui.py @@ -349,7 +349,9 @@ def createPreExistFSOptionSection(origrequest, maintable, row, mountCombo, if origrequest.resizable: resizecb = gtk.CheckButton(label=_("_Resize")) - resizecb.set_active(origrequest.targetSize != origrequest.currentSize) + resizecb.set_active(origrequest.resizable and \ + ((origrequest.targetSize != 0) and \ + (origrequest.targetSize != origrequest.currentSize))) rc["resizecb"] = resizecb maintable.attach(resizecb, 0, 1, row, row + 1) -- 1.6.2 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list