mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Fix changing 'arch' in VM create wizard.
Previously it never did anything :(
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user