create: Fix backtrace when showing all OS options

This commit is contained in:
Cole Robinson 2012-10-24 15:20:17 -04:00
parent 8f6b1f977b
commit 2eb2397527

View File

@ -801,7 +801,7 @@ class vmmCreate(vmmGObjectUI):
def populate_os_variant_model(self, _type):
model = self.widget("install-os-version").get_model()
model.clear()
if _type == None:
if not _type:
self._add_os_row(model, None, _("Generic"), True)
return