mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-08 04:58:29 +03:00
storagebrowse: Only tick if we actually have a pool
This commit is contained in:
parent
0ee5ddbf54
commit
e826de7c73
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user