Commit 69c2d24a authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

No need to manage these pointers anymore

parent c66379da
......@@ -225,7 +225,6 @@ void PackageKitNotifier::refreshDatabase()
m_refresher = PackageKit::Daemon::refreshCache(false);
connect(m_refresher.data(), &PackageKit::Transaction::finished, this, [this]() {
recheckSystemUpdateNeeded();
delete m_refresher;
});
}
......@@ -233,9 +232,6 @@ void PackageKitNotifier::refreshDatabase()
if (!m_distUpgrades && (PackageKit::Daemon::roles() & PackageKit::Transaction::RoleUpgradeSystem)) {
m_distUpgrades = PackageKit::Daemon::getDistroUpgrades();
connect(m_distUpgrades, &PackageKit::Transaction::distroUpgrade, this, &PackageKitNotifier::onDistroUpgrade);
connect(m_distUpgrades.data(), &PackageKit::Transaction::finished, this, [this]() {
delete m_distUpgrades;
});
}
#endif
}
......
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