SUMMARY This bug occurs on both neon unstable and Arch Linux (Plasma 5.23 beta). Some repos are listed as "undefined" when I open Discover and go to Settings page for the first time. Please watch the attached screen recording. EXPECTED RESULT correct names of th repos SOFTWARE/OS VERSIONS Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.23.80 KDE Frameworks Version: 5.86.0 Qt Version: 5.15.3 Graphics Platform: Wayland
Created attachment 141652 [details] screeen recording
Can confirm on Fedora 34.
Git commit 57d8dcd4928746e01d21c0c53aad605e43c893f2 by Aleix Pol. Committed on 23/09/2021 at 01:31. Pushed by apol into branch 'master'. Sources: Fix displaying sources This is a work-around to 2 half-bugs: - ListView doesn't really care for models with columns - QConcatenateTablesProxyModel enforces that we see the minimum amount of columns available in all of the models. Empty models (like QStandardItemModel) will report 0 columns if they're empty. This makes the resulting model to appear bogus to the view. ListView doesn't seem to refresh the items when a new column is added because it doesn't care about columns. Result: this workaround after a bunch of wasted hours. :( M +13 -2 libdiscover/resources/SourcesModel.cpp M +4 -0 libdiscover/utils.h https://invent.kde.org/plasma/discover/commit/57d8dcd4928746e01d21c0c53aad605e43c893f2
Git commit 793dc9e1908da487cfa42581a1c51af38933cf98 by Aleix Pol Gonzalez, on behalf of Aleix Pol. Committed on 23/09/2021 at 01:31. Pushed by apol into branch 'Plasma/5.23'. Sources: Fix displaying sources This is a work-around to 2 half-bugs: - ListView doesn't really care for models with columns - QConcatenateTablesProxyModel enforces that we see the minimum amount of columns available in all of the models. Empty models (like QStandardItemModel) will report 0 columns if they're empty. This makes the resulting model to appear bogus to the view. ListView doesn't seem to refresh the items when a new column is added because it doesn't care about columns. Result: this workaround after a bunch of wasted hours. :( (cherry picked from commit 57d8dcd4928746e01d21c0c53aad605e43c893f2) M +13 -2 libdiscover/resources/SourcesModel.cpp M +4 -0 libdiscover/utils.h https://invent.kde.org/plasma/discover/commit/793dc9e1908da487cfa42581a1c51af38933cf98
https://codereview.qt-project.org/c/qt/qtdeclarative/+/372646