Fix changing 'arch' in VM create wizard.

Previously it never did anything :(
This commit is contained in:
Cole Robinson
2009-05-11 13:18:14 -04:00
parent 92ea5be08d
commit d954dcc918

View File

@@ -698,7 +698,7 @@ class vmmCreate(gobject.GObject):
net_list.set_active(default)
def change_caps(self, gtype=None, dtype=None):
def change_caps(self, gtype=None, dtype=None, arch=None):
if gtype == None:
# If none specified, prefer HVM. This way, the default install
@@ -714,7 +714,8 @@ class vmmCreate(gobject.GObject):
caps=self.caps,
os_type = gtype,
type = dtype,
accelerated=True)
accelerated=True,
arch=arch)
if (self.capsguest and self.capsdomain and
(newg.arch == self.capsguest.arch and
@@ -938,6 +939,11 @@ class vmmCreate(gobject.GObject):
if idx < 0:
return
arch = src.get_model()[idx][0]
self.change_caps(self.capsguest.os_type,
self.capsdomain.hypervisor_type,
arch)
def url_box_changed(self, ignore):
# If the url_entry has focus, don't fire detect_media_os, it means
# the user is probably typing