When going back in create wizard, skip fv/pv choice page if host isn't hvm capable (William Sheehan via bz 207409)

This commit is contained in:
Daniel P. Berrange 2006-09-22 12:41:06 -04:00
parent 1020286cb4
commit 98abb6badf
2 changed files with 10 additions and 4 deletions

View File

@ -3,16 +3,19 @@
Virtual Machine Manager code is developed by:
Daniel Berrange <berrange@redhat.com>
Hugh O. Brock <hbrock@redhat.com>
Daniel Berrange <berrange-at-redhat-dot-com>
Hugh O. Brock <hbrock-at-redhat-dot-com>
Jeremy Katz <katzj-at-redhat-dot-com>
The user interaction / interface design and artwork is
done by:
Máirín Duffy <duffy@redhat.com>
Máirín Duffy <duffy-at-redhat-dot-com>
Further patches have been submitted by:
William Sheehan <william-dot-sheehan-at-openinterface-dot-com>
<...send a patch & get your name here...>

View File

@ -165,7 +165,10 @@ class vmmCreate(gobject.GObject):
self.window.get_widget("create-finish").hide()
self.window.get_widget("create-forward").show()
if notebook.get_current_page() == 4 and self.get_config_method() == VM_PARA_VIRT:
notebook.set_current_page(2)
if xeninst.util.is_hvm_capable():
notebook.set_current_page(2)
else:
notebook.set_current_page(1)
elif notebook.get_current_page() == 5 and self.get_config_method() == VM_FULLY_VIRT:
notebook.set_current_page(3)
else: