[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
Tue Dec 23 03:59:56 UTC 2014
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
More information about the virt-tools-list
mailing list