host: Fix a couple recently introduced issues

This commit is contained in:
Cole Robinson 2015-04-10 09:31:13 -04:00
parent cb5d075f50
commit 3df02e8ee1
2 changed files with 3 additions and 3 deletions

View File

@ -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."))

View File

@ -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