[PATCH] Don't set up the resize slider for non-resizable devices. (#997690)

Brian C. Lane bcl at redhat.com
Thu Sep 12 00:14:06 UTC 2013


On Wed, Sep 11, 2013 at 06:05:25PM -0500, David Lehman wrote:
> The setup method was actually triggering a signal handler for a changed
> value, which caused trouble since the device was not resizable.
> ---
>  pyanaconda/ui/gui/spokes/lib/resize.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/pyanaconda/ui/gui/spokes/lib/resize.py b/pyanaconda/ui/gui/spokes/lib/resize.py
> index aaf987c..f4b8e84 100644
> --- a/pyanaconda/ui/gui/spokes/lib/resize.py
> +++ b/pyanaconda/ui/gui/spokes/lib/resize.py
> @@ -265,7 +265,8 @@ class ResizeDialog(GUIObject):
>          # button insensitive.
>          self._shrinkButton.set_sensitive(device.resizable)
>  
> -        self._setup_slider(device, obj.target)
> +        if device.resizable:
> +            self._setup_slider(device, obj.target)
>  
>          # Then, disable the button for whatever action is currently selected.
>          # It doesn't make a lot of sense to allow clicking that.
> -- 
> 1.8.1.4

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20130911/81b02448/attachment.sig>


More information about the anaconda-patches mailing list