https://bugs.kde.org/show_bug.cgi?id=442604

Aleix Pol <aleix...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/discover/commit/57d8dcd4 |ma/discover/commit/793dc9e1
                   |928746e01d21c0c53aad605e43c |908da487cfa42581a1c51af3893
                   |893f2                       |3cf98

--- Comment #4 from Aleix Pol <aleix...@kde.org> ---
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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to