[virt-tools-list] [virt-manager PATCH] storagebrowse: refresh storage pool when open browse window or selecting a new item

Chen, Hanxiao chenhanxiao at cn.fujitsu.com
Fri Jan 9 03:32:13 UTC 2015


ping

> -----Original Message-----
> From: virt-tools-list-bounces at redhat.com
> [mailto:virt-tools-list-bounces at redhat.com] On Behalf Of Chen Hanxiao
> Sent: Tuesday, December 23, 2014 12:00 PM
> To: virt-tools-list at redhat.com
> Subject: [virt-tools-list] [virt-manager PATCH] storagebrowse: refresh storage pool
> when open browse window or selecting a new item
> 
> do a refresh operation when:
> a) open 'Locate or create storage volume' window
> b) select a new item in 'Storage Pools' list
> 
> Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
> ---
>  virtManager/storagebrowse.py | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/virtManager/storagebrowse.py b/virtManager/storagebrowse.py
> index d4bd672..b69abb3 100644
> --- a/virtManager/storagebrowse.py
> +++ b/virtManager/storagebrowse.py
> @@ -300,6 +300,8 @@ class vmmStorageBrowser(vmmGObjectUI):
>      # Listeners
>      def pool_selected(self, src_ignore=None):
>          pool = self.current_pool()
> +        if pool:
> +            pool.refresh()
> 
>          can_new_vol = False
>          tt = ""
> @@ -320,6 +322,7 @@ class vmmStorageBrowser(vmmGObjectUI):
>          canchoose = bool(vol and vol[5])
>          self.widget("choose-volume").set_sensitive(canchoose)
>          self.widget("vol-delete").set_sensitive(canchoose)
> +        self.pool_refresh(vol)
> 
>      def refresh_current_pool(self, createvol=None):
>          cp = self.current_pool()
> --
> 1.9.3
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list




More information about the virt-tools-list mailing list