Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community 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)
m_packages[info].append(packageId);
else
m_packages[info].prepend(packageId);
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