mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
virt-manager, addhardware: disable "Finish" with unsupported devs
Disabled the "Finish" button in the "Add Hardware" window when the specified dev is not supported by the HV. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1087670 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
d4c27baa45
commit
06e480c847
@ -1052,6 +1052,8 @@ class vmmAddHardware(vmmGObjectUI):
|
|||||||
sens = row[3]
|
sens = row[3]
|
||||||
msg = row[4] or ""
|
msg = row[4] or ""
|
||||||
|
|
||||||
|
self.widget("create-finish").set_sensitive(sens)
|
||||||
|
|
||||||
if not sens:
|
if not sens:
|
||||||
page = PAGE_ERROR
|
page = PAGE_ERROR
|
||||||
self.widget("hardware-info").set_text(msg)
|
self.widget("hardware-info").set_text(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user