Make main window parent of package install dialogs

This commit is contained in:
Cole Robinson 2012-10-28 20:22:58 -04:00
parent 2163ba3a30
commit 53605cb21b
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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