mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-24 21:34:47 +03:00
details: Report errors when launching addhw dialog
This commit is contained in:
parent
ee3e0ba450
commit
0c0b977df4
@ -1169,10 +1169,14 @@ class vmmDetails(vmmGObjectUI):
|
||||
self.window.get_widget("details-pages").set_current_page(PAGE_DETAILS)
|
||||
|
||||
def add_hardware(self, src_ignore):
|
||||
if self.addhw is None:
|
||||
self.addhw = vmmAddHardware(self.vm)
|
||||
try:
|
||||
if self.addhw is None:
|
||||
self.addhw = vmmAddHardware(self.vm)
|
||||
|
||||
self.addhw.show()
|
||||
self.addhw.show()
|
||||
except Exception, e:
|
||||
self.err.show_err((_("Error launching hardware dialog: %s") %
|
||||
str(e)), "".join(traceback.format_exc()))
|
||||
|
||||
def remove_xml_dev(self, src_ignore):
|
||||
info = self.get_hw_selection(HW_LIST_COL_DEVICE)
|
||||
|
Loading…
Reference in New Issue
Block a user