create: Fix building guest when no network options are present

This commit is contained in:
Cole Robinson 2011-04-07 17:11:10 -04:00
parent f10063d6bd
commit 6da0a95b57

View File

@ -1492,6 +1492,7 @@ class vmmCreate(vmmGObjectUI):
if self.nic and self.nic in self.guest.get_devices("interface"):
self.guest.remove_device(self.nic)
if nic:
self.nic = nic
self.guest.add_device(self.nic)