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
|
libvirt_packages = self.config.libvirt_packages
|
||||||
packages = self.config.hv_packages + 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:
|
except:
|
||||||
logging.exception("Error talking to PackageKit")
|
logging.exception("Error talking to PackageKit")
|
||||||
|
|
||||||
@ -190,7 +190,7 @@ class vmmEngine(vmmGObject):
|
|||||||
"start up.")
|
"start up.")
|
||||||
|
|
||||||
if not didstart:
|
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)
|
self.connect_to_uri(tryuri, autoconnect=True, do_start=do_start)
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ def check_packagekit(errbox, packages, ishv):
|
|||||||
found = []
|
found = []
|
||||||
progWin = vmmAsyncJob(_do_async_search,
|
progWin = vmmAsyncJob(_do_async_search,
|
||||||
[session, pk_control, packages], msg, msg,
|
[session, pk_control, packages], msg, msg,
|
||||||
None, async=False)
|
errbox.get_parent(), async=False)
|
||||||
error, ignore = progWin.run()
|
error, ignore = progWin.run()
|
||||||
if error:
|
if error:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user