create: Don't reset method choice when arch changes if it's still valid

This commit is contained in:
Cole Robinson 2014-01-12 14:41:25 -05:00
parent d12c986b98
commit dd57f2f221
1 changed files with 6 additions and 4 deletions

View File

@ -465,10 +465,12 @@ class vmmCreate(vmmGObjectUI):
local_tt = msg
pxe_tt = msg
for w in virt_methods:
if w.get_sensitive():
w.set_active(True)
break
if not any([w.get_active() and w.get_sensitive()
for w in virt_methods]):
for w in virt_methods:
if w.get_sensitive():
w.set_active(True)
break
if not (is_container or
[w for w in virt_methods if w.get_sensitive()]):