| Summary: | Cannot install things from ThumbDelegate or BigPreviewDelegate install buttons | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-knewstuff | Reporter: | Patrick Silva <bugseforuns> |
| Component: | general | Assignee: | Alexander Lohnau <alexander.lohnau> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | alexander.lohnau, kdelibs-bugs-null, nate |
| Priority: | NOR | Keywords: | qt6 |
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Neon | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/knewstuff/-/commit/a5197c9e4fa5940f645684c996ca1af3c85bfcb2 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Patrick Silva
2023-10-12 13:13:46 UTC
Can confirm. Console log says: qrc:/qt/qml/org/kde/newstuff/private/entrygriddelegates/BigPreviewDelegate.qml:54: TypeError: Property 'install' of object ItemsModel(0x4c7b0b0) is not a function Looks like the install button on the GridTileDelegate works, but not the other delegate types. The situation appears to be messy; functions are called from: - newStuffModel - newStuffModel.engine - newStuffEngine Alexander, do you have some clarity on which one is right? A naive test of replacing `newStuffModel.install` with `newStuffEngine.install` everywhere seems to work, but I don't feel like I have enough context to feel confident that it's the right change, or that making this change for other functions would also be right. A possibly relevant merge request was started @ https://invent.kde.org/frameworks/knewstuff/-/merge_requests/275 > - newStuffModel.engine
> - newStuffEngine
That refers to the exact same object ;)
Git commit a5197c9e4fa5940f645684c996ca1af3c85bfcb2 by Alexander Lohnau. Committed on 13/10/2023 at 07:47. Pushed by alex into branch 'master'. Ensure to call install/uninstall on quick engine instead of model M +1 -1 src/qtquick/qml/private/entrygriddelegates/BigPreviewDelegate.qml M +2 -2 src/qtquick/qml/private/entrygriddelegates/ThumbDelegate.qml https://invent.kde.org/frameworks/knewstuff/-/commit/a5197c9e4fa5940f645684c996ca1af3c85bfcb2 |