Multiple themes named "Default" were inserted into the QMap,
one for my prefix and then one for /usr/share, which replaced it.
What we want is this to be a single theme with multiple search paths.
Details
This fixes the "Kontact introduction" in my developer
setup where everything is installed into a custom prefix.
Before this fix, only /usr/share/messageviewer/about was looked at,
and I don't have kontact installed there.
Diff Detail
- Repository
- R77 PIM: Grantlee Theme
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 26666 Build 26684: arc lint + arc unit
Why not simply ignore the theme if it's already in alreayLoadedThemeName, or at least if themes.contains(dirName)? No need to collect the additional theme paths, if they are not used?
src/grantleethememanager.cpp | ||
---|---|---|
147 | Coding style: braces |
They are used. But indeed I don't actually need that to fix my use case. I thought proper cascading was better than just fixing my use case?
In my use case, <customprefix> has everything, /usr/share has some duplicates. So obviously stopping at <customprefix> would be good enough.
But if someone installs only *one* application in <customprefix> and it adds some things to the default grantlee theme, we still want the rest of the theme to be found in /usr, no?
src/grantleetheme.cpp | ||
---|---|---|
78 | They *are* used. Here. | |
193 | Here however we have a problem. |