summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2014-01-26 14:11:06 -0500
committerCole Robinson <crobinso@redhat.com>2014-01-26 14:15:46 -0500
commite771af011221fd787b821e3320f62840593c8aaf (patch)
tree54d03d6284eda9eb424d2ef69bfee0d4589c5668
parent11ebe5d84e73f2d09146235dde80970741fccd84 (diff)
downloadvirt-manager-e771af011221fd787b821e3320f62840593c8aaf.tar.gz
details: If refresing page errors, still disable apply
and switch to the busted page, rather than strangely stay on the previous page.
-rw-r--r--virtManager/details.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/virtManager/details.py b/virtManager/details.py
index cb8d0e50..d2c24f89 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -1220,10 +1220,10 @@ class vmmDetails(vmmGObjectUI):
pagetype = -1
except Exception, e:
self.err.show_err(_("Error refreshing hardware page: %s") % str(e))
- return
+ # Don't return, we want the rest of the bits to run regardless
- rem = pagetype in remove_pages
self.disable_apply()
+ rem = pagetype in remove_pages
self.widget("config-remove").set_visible(rem)
self.widget("hw-panel").set_current_page(pagetype)