storagebrowse: Only tick if we actually have a pool

This commit is contained in:
Cole Robinson 2013-07-08 14:20:15 -04:00
parent 0ee5ddbf54
commit e826de7c73

View File

@ -256,10 +256,10 @@ class vmmStorageBrowser(vmmGObjectUI):
def pool_selected(self, src_ignore=None):
pool = self.current_pool()
pool.tick()
newvol = bool(pool)
if pool:
pool.tick()
newvol = pool.is_active()
newvol = newvol and self.allow_create()