Fix colours not updating in systemsettings

Authored by davidedmundson on Oct 23 2017, 9:37 AM.

Description

Fix colours not updating in systemsettings

Summary:
(after a lot of looking, it turns it's out not a bug in the QQC desktop
style)

KSharedConfig::openConfig() opens the config based on the app name.

The app name comes from the exec name, or
KAboutData::setApplicationData.
setApplicationData only works on an existing qApp.

This means the QPT loaded in the QApp uses the wrong config.
The effect is minimal because most stuff is in kdeglobals, but it means
the KSharedConfigPtr is not shared with the one used elsewhere in the
app. This is wasteful, but also means the QPT calling
reparseConfiguration doesn't take effect, leading to colours not being
dynamically updated

Reviewers: Plasma, mart

Reviewed By: Plasma, mart

Subscribers: ngraham, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D8399

Details

Committed
davidedmundsonOct 23 2017, 9:37 AM
Reviewer
Plasma
Differential Revision
D8399: Fix colours not updating in systemsettings
Parents
R124:f89baf43a9d9: Update version number for 5.11.1 GIT_SILENT
Branches
Unknown
Tags
Unknown