mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-27 01:55:20 +03:00
Fix harmless TypeError exceptions from being raised while opening the addhardware wizard.
This commit is contained in:
parent
a88aebea6f
commit
d82a179093
@ -279,6 +279,8 @@ class vmmAddHardware(gobject.GObject):
|
||||
|
||||
def get_config_graphics(self):
|
||||
type = self.window.get_widget("graphics-type")
|
||||
if type.get_active_iter() is None:
|
||||
return None
|
||||
return type.get_model().get_value(type.get_active_iter(), 1)
|
||||
|
||||
def get_config_vnc_port(self):
|
||||
|
Loading…
Reference in New Issue
Block a user