mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-03 13:47:18 +03:00
host: Fix a couple recently introduced issues
This commit is contained in:
parent
cb5d075f50
commit
3df02e8ee1
@ -338,11 +338,11 @@ class vmmHost(vmmGObjectUI):
|
||||
self.widget("interface-add").set_sensitive(conn_active and
|
||||
self.conn.is_interface_capable())
|
||||
|
||||
if not self.conn.is_network_capable():
|
||||
if conn_active and not self.conn.is_network_capable():
|
||||
self.set_net_error_page(
|
||||
_("Libvirt connection does not support virtual network "
|
||||
"management."))
|
||||
if not self.conn.is_interface_capable():
|
||||
if conn_active and not self.conn.is_interface_capable():
|
||||
self.set_interface_error_page(
|
||||
_("Libvirt connection does not support interface management."))
|
||||
|
||||
|
@ -292,7 +292,7 @@ class vmmStorageList(vmmGObjectUI):
|
||||
break
|
||||
|
||||
curpool = self._current_pool()
|
||||
if curpool.get_connkey() != connkey:
|
||||
if not curpool or curpool.get_connkey() != connkey:
|
||||
return
|
||||
|
||||
# Currently selected pool changed state: force a 'pool_selected' to
|
||||
|
Loading…
x
Reference in New Issue
Block a user