virtManager/create: update capsinfo sooner in set_conn_state
We need to update/initialize the capsinfo sooner in that function to be able to call has_install_options(). Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1244566 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
2d9587c114
commit
cce1f89a34
|
@ -504,6 +504,9 @@ class vmmCreate(vmmGObjectUI):
|
|||
self.widget("startup-error-box").hide()
|
||||
self.widget("create-forward").set_sensitive(True)
|
||||
|
||||
self.conn.invalidate_caps()
|
||||
self.change_caps()
|
||||
|
||||
if not self.capsinfo.guest.has_install_options():
|
||||
error = _("No hypervisor options were found for this "
|
||||
"connection.")
|
||||
|
@ -517,8 +520,6 @@ class vmmCreate(vmmGObjectUI):
|
|||
|
||||
# A bit out of order, but populate arch + hv lists so we can
|
||||
# determine a default
|
||||
self.conn.invalidate_caps()
|
||||
self.change_caps()
|
||||
self.populate_hv()
|
||||
self.populate_arch()
|
||||
|
||||
|
|
Loading…
Reference in New Issue