Bug 425135

Summary: GHNS windows: Addons list should immediately be updated after we uninstall an addon while "Installed only" or "Updateable only" filters are selected
Product: [Frameworks and Libraries] frameworks-knewstuff Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Jeremy Whiting <jpwhiting>
Status: RESOLVED FIXED    
Severity: normal CC: admin, alexander.lohnau, kdelibs-bugs, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 5.74
Sentry Crash Report:

Description Patrick Silva 2020-08-08 11:27:13 UTC
STEPS TO REPRODUCE
1. open a GHNS window when an addon update is available
2. set the first dropdown on bottom to "Updateable only"
3. hover over an addon and click on "Uninstall" button

OBSERVED RESULT
the addon is uninstalled as expected but it is still listed

EXPECTED RESULT
not installed addon should not be listed while "Updateable only" filter is selected

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.73.0
Qt Version: 5.14.2
Comment 1 Patrick Silva 2020-08-10 11:06:36 UTC
humm, if "Installed only" filter is selected, addon is still listed after uninstalling.
Comment 2 Patrick Silva 2020-08-10 18:39:30 UTC
*** Bug 418037 has been marked as a duplicate of this bug. ***
Comment 3 Alexander Lohnau 2020-08-31 09:24:50 UTC
This is only an issue with the new QtQuick dialog. The QWidgets one has no updatable sort mode and when using the installed filter and uninstalling an entry you see the "Install again" button .
Comment 4 Bug Janitor Service 2020-08-31 09:51:41 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/knewstuff/-/merge_requests/44
Comment 5 Alexander Lohnau 2020-09-01 08:59:05 UTC
Git commit 8531bbcc004bdafa0a0c6060966c2daec457b776 by Alexander Lohnau.
Committed on 31/08/2020 at 09:45.
Pushed by alex into branch 'master'.

Remove entries if they do not match filter anymore

The state of the entries already gets updated, but
they are still contained in the list of entries
that match the filter. So we have to remove it.
FIXED-IN: 5.74

M  +8    -0    src/qtquick/quickitemsmodel.cpp

https://invent.kde.org/frameworks/knewstuff/commit/8531bbcc004bdafa0a0c6060966c2daec457b776