Fix harmless TypeError exceptions from being raised while opening the addhardware wizard.

This commit is contained in:
root@crobinso1.boston.redhat.com 2007-11-16 15:03:28 -05:00
parent a88aebea6f
commit d82a179093

View File

@ -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):