Initialize m_actualGroup to NormalColorGroup

Reviewers: #frameworks, dfaure

Reviewed By: dfaure

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D10464
This commit is contained in:
Aleix Pol 2018-02-12 16:55:15 +01:00
parent 3e4b26452a
commit 581dc48ff8

View File

@ -31,7 +31,8 @@ ColorScope::ColorScope(QQuickItem *parent, QObject *parentObject)
: QQuickItem(parent),
m_inherit(false),
m_group(Plasma::Theme::NormalColorGroup),
m_parent(parentObject)
m_parent(parentObject),
m_actualGroup(Plasma::Theme::NormalColorGroup)
{
connect(&m_theme, &Plasma::Theme::themeChanged, this, &ColorScope::colorsChanged);
connect(this, &ColorScope::colorGroupChanged, this, &ColorScope::colorsChanged);