mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Make main window parent of package install dialogs
This commit is contained in:
parent
2163ba3a30
commit
53605cb21b
@ -159,7 +159,7 @@ class vmmEngine(vmmGObject):
|
||||
libvirt_packages = self.config.libvirt_packages
|
||||
packages = self.config.hv_packages + libvirt_packages
|
||||
|
||||
ret = packageutils.check_packagekit(self.err, packages, True)
|
||||
ret = packageutils.check_packagekit(manager.err, packages, True)
|
||||
except:
|
||||
logging.exception("Error talking to PackageKit")
|
||||
|
||||
@ -190,7 +190,7 @@ class vmmEngine(vmmGObject):
|
||||
"start up.")
|
||||
|
||||
if not didstart:
|
||||
self.err.ok(_("Libvirt service must be started"), warnmsg)
|
||||
manager.err.ok(_("Libvirt service must be started"), warnmsg)
|
||||
|
||||
self.connect_to_uri(tryuri, autoconnect=True, do_start=do_start)
|
||||
|
||||
|
@ -61,7 +61,7 @@ def check_packagekit(errbox, packages, ishv):
|
||||
found = []
|
||||
progWin = vmmAsyncJob(_do_async_search,
|
||||
[session, pk_control, packages], msg, msg,
|
||||
None, async=False)
|
||||
errbox.get_parent(), async=False)
|
||||
error, ignore = progWin.run()
|
||||
if error:
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user