Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 11b74142 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

pk: only emit PackageKitResource::stateChanged if it actually changed

parent a766cca0
......@@ -154,11 +154,14 @@ AbstractResource::State PackageKitResource::state()
void PackageKitResource::addPackageId(PackageKit::Transaction::Info info, const QString &packageId, bool arch)
auto oldState = state();
if (arch)
emit stateChanged();
if (oldState != state())
emit stateChanged();
QStringList PackageKitResource::categories()
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