Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
apper
0019-Connect-to-finished-signal-of-ApplicationL...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0019-Connect-to-finished-signal-of-ApplicationLaunch-in-o.patch of Package apper
From b5c0a25134109cf258f6afd37696940cebe6338b Mon Sep 17 00:00:00 2001 From: Daniel Nicoletti <dantti12@gmail.com> Date: Fri, 18 Jan 2013 01:37:52 -0200 Subject: [PATCH 19/20] Connect to finished signal of ApplicationLaunch in order to finish the transaction when the user presses ESC Show applications installed for selected packages on an install --- libapper/PkTransaction.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libapper/PkTransaction.cpp b/libapper/PkTransaction.cpp index 1f6b4c0..6370468 100644 --- a/libapper/PkTransaction.cpp +++ b/libapper/PkTransaction.cpp @@ -515,7 +515,12 @@ void PkTransaction::slotFinished(Transaction::Exit status) foreach (const QString &packageID, d->packages) { d->simulateModel->removePackage(packageID); } + d->newPackages = d->simulateModel->packagesWithInfo(Transaction::InfoInstalling); + if (_role == Transaction::RoleInstallPackages) { + d->newPackages << d->packages; + d->newPackages.removeDuplicates(); + } requires = new Requirements(d->simulateModel, d->parentWindow); requires->setDownloadSizeRemaining(d->downloadSizeRemaining); @@ -562,8 +567,7 @@ void PkTransaction::slotFinished(Transaction::Exit status) // if we have a launcher and the laucher has applications // show them to the user showDialog(d->launcher); - connect(d->launcher, SIGNAL(accepted()), - this, SLOT(setExitStatus())); + connect(d->launcher, SIGNAL(finished()), SLOT(setExitStatus())); return; } setExitStatus(Success); -- 1.8.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor