Commit 5e08b2f5 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

fix warnings

parent d20d2a82
......@@ -277,10 +277,10 @@ void PackageKitResource::fetchDependencies()
QSharedPointer<QJsonObject> packageDependencies(new QJsonObject);
auto trans = PackageKit::Daemon::installPackage(id, PackageKit::Transaction::TransactionFlagSimulate);
connect(trans, &PackageKit::Transaction::errorCode, backend(), &PackageKitBackend::transactionError);
connect(trans, &PackageKit::Transaction::package, this, [packageDependencies](PackageKit::Transaction::Info info, const QString &packageID, const QString &summary) {
connect(trans, &PackageKit::Transaction::package, this, [packageDependencies](PackageKit::Transaction::Info /*info*/, const QString &packageID, const QString &summary) {
(*packageDependencies)[PackageKit::Daemon::packageName(packageID)] = summary ;
});
connect(trans, &PackageKit::Transaction::finished, this, [this, packageDependencies](PackageKit::Transaction::Exit status) {
connect(trans, &PackageKit::Transaction::finished, this, [this, packageDependencies](PackageKit::Transaction::Exit /*status*/) {
Q_EMIT dependenciesFound(*packageDependencies);
});
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment