Re: [PATCH storage] Fix member preselection in raid UI.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2009-03-18 at 17:31 +0100, Radek Vykydal wrote:
> It was broken (empty) when editing non-preexisting array.

Looks good. I was about to start working on this myself -- I'm glad you
pointed it out.

Dave


> ---
>  iw/raid_dialog_gui.py |   11 ++++++-----
>  1 files changed, 6 insertions(+), 5 deletions(-)
> 
> diff --git a/iw/raid_dialog_gui.py b/iw/raid_dialog_gui.py
> index 578e3e7..d74ddd0 100644
> --- a/iw/raid_dialog_gui.py
> +++ b/iw/raid_dialog_gui.py
> @@ -63,12 +63,13 @@ class RaidEditor:
>  	    partname = "%s" % part.name
>  	    partsize = "%8.0f MB" % part.size
>  
> -            if not self.origrequest.exists:
> -                partlist.append_row((partname, partsize), False)
> +            if part in tempDevList:
> +                #list the partition and put it as selected
> +                partlist.append_row((partname, partsize), True)
>              else:
> -                if part in tempDevList:
> -                    #list the partition and put it as selected
> -                    partlist.append_row((partname, partsize), True)
> +                if not self.origrequest.exists:
> +                    partlist.append_row((partname, partsize), False)
> +
>  
>  	return (partlist, sw)
>  

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux