Navigation Menu

Skip to content

Commit

Permalink
[systemsettings] Fix current profile property not updating properly
Browse files Browse the repository at this point in the history
Profile property was not updating when profile changes came outside
this controller.
  • Loading branch information
pvuorela committed Sep 12, 2013
1 parent 4634506 commit 787cd45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/profilecontrol.cpp
Expand Up @@ -516,7 +516,9 @@ void ProfileControl::setClockAlarmToneEnabled(bool enabled)

void ProfileControl::currentProfileChangedCallback(const char *name, ProfileControl *profileControl)
{
emit profileControl->profileChanged(QString::fromUtf8(name));
QString newProfile = QString::fromUtf8(name);
profileControl->m_profile = newProfile;
emit profileControl->profileChanged(newProfile);
}

void ProfileControl::updateStateCallBack(const char *profile, const char *key, const char *val, const char *type)
Expand Down

0 comments on commit 787cd45

Please sign in to comment.