mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-11 05:17:59 +03:00
addhw: Fix error if no host devices are available
This commit is contained in:
parent
36c669d45a
commit
e1063e0089
@ -597,7 +597,7 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
model.append([prettyname, dev.name, devtype, dev])
|
||||
|
||||
if len(model) == 0:
|
||||
model.append([_("No Devices Available"), None])
|
||||
model.append([_("No Devices Available"), None, None, None])
|
||||
uihelpers.set_list_selection(devlist, 0)
|
||||
|
||||
def populate_disk_format_combo(self, create):
|
||||
|
Loading…
Reference in New Issue
Block a user