[PATCH] Network spoke: fix model access thinko in Add device dialog
Vratislav Podzimek
vpodzime at redhat.com
Tue Mar 26 14:12:07 UTC 2013
On Tue, 2013-03-26 at 11:37 +0100, Radek Vykydal wrote:
> ---
> pyanaconda/ui/gui/spokes/network.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
> index bca4b19..ec5e076 100644
> --- a/pyanaconda/ui/gui/spokes/network.py
> +++ b/pyanaconda/ui/gui/spokes/network.py
> @@ -511,7 +511,7 @@ class NetworkControlBox(object):
> if rc == 1:
> ai = self.builder.get_object("combobox_add_device").get_active_iter()
> model = self.builder.get_object("liststore_add_device")
> - dev_type = model.get[ai][1][0]
> + dev_type = model[ai][1][0]
> self.add_device(dev_type)
>
> def add_device(self, type):
ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list