Commit 5421b099 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

pk: don't show an error notice when a reboot is necessary

The UpdatesPage will also do it, and so will the notifier. No need to
have it everywhere.
parent babef2d1
......@@ -187,7 +187,6 @@ void PackageKitUpdater::setupTransaction(PackageKit::Transaction::TransactionFla
connect(m_transaction.data(), &PackageKit::Transaction::package, this, &PackageKitUpdater::packageResolved);
connect(m_transaction.data(), &PackageKit::Transaction::errorCode, this, &PackageKitUpdater::errorFound);
connect(m_transaction.data(), &PackageKit::Transaction::mediaChangeRequired, this, &PackageKitUpdater::mediaChange);
connect(m_transaction.data(), &PackageKit::Transaction::requireRestart, this, &PackageKitUpdater::requireRestart);
connect(m_transaction.data(), &PackageKit::Transaction::eulaRequired, this, &PackageKitUpdater::eulaRequired);
connect(m_transaction.data(), &PackageKit::Transaction::repoSignatureRequired, this, &PackageKitUpdater::repoSignatureRequired);
connect(m_transaction.data(), &PackageKit::Transaction::allowCancelChanged, this, &PackageKitUpdater::cancellableChanged);
......@@ -418,11 +417,6 @@ void PackageKitUpdater::mediaChange(PackageKit::Transaction::MediaType media, co
Q_EMIT passiveMessage(i18n("Media Change of type '%1' is requested.\n%2", type, text));
}
void PackageKitUpdater::requireRestart(PackageKit::Transaction::Restart restart, const QString& pkgid)
{
Q_EMIT passiveMessage(PackageKitMessages::restartMessage(restart, pkgid));
}
void PackageKitUpdater::eulaRequired(const QString& eulaID, const QString& packageID, const QString& vendor, const QString& licenseAgreement)
{
m_proceedFunctions << [eulaID](){
......
......@@ -47,7 +47,6 @@ class PackageKitUpdater : public AbstractBackendUpdater
private Q_SLOTS:
void errorFound(PackageKit::Transaction::Error err, const QString& error);
void mediaChange(PackageKit::Transaction::MediaType media, const QString& type, const QString& text);
void requireRestart(PackageKit::Transaction::Restart restart, const QString& p);
void eulaRequired(const QString &eulaID, const QString &packageID, const QString &vendor, const QString &licenseAgreement);
void finished(PackageKit::Transaction::Exit exit, uint);
void cancellableChanged();
......
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