Skip to content

Work/kns

Alexander Lohnau requested to merge work/kns into master

It might be worth saying that the previously installedEntries() method only returns the changed entries that are installed:

Entry::List DownloadWidget::installedEntries()
{
    Entry::List entries;
    for (const KNSCore::EntryInternal &e : qAsConst(d->changedEntries)) {
        if (e.status() == Entry::Installed) {
            entries.append(EntryPrivate::fromInternal(&e));
        }
    }
    return entries;
}

Consequently we can just check the status in our for loop and skip the entry if it was not installed

@leinir @mschiller

Edited by Alexander Lohnau

Merge request reports