Do not flag every existing partition for resize (#491803)
On Tue, 2009-03-24 at 14:27 -1000, David Cantrell wrote:
> Check the resizable property as well as targetSize not being zero
> (indicates no new targetSize has been set) and finally compare
> targetSize to currentSize.
Looks good.
> ---
> 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)
>
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list