~ps-jenkins/gsettings-qt/trusty-proposed

« back to all changes in this revision

Viewing changes to GSettings/gsettings-qml.cpp

  • Committer: Tarmac
  • Author(s): Lars Uebernickel
  • Date: 2013-07-29 20:06:26 UTC
  • mfrom: (28.2.1 trunk)
  • Revision ID: tarmac-20130729200626-arkbusio5euhfdt8
Fix regression: GSettingsQml didn't update values on change. Fixes: https://bugs.launchpad.net/bugs/1206181.

Approved by PS Jenkins bot, Sebastien Bacher.

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
 
120
120
void GSettingsQml::settingChanged(const QString &key)
121
121
{
122
 
    Q_EMIT(changed(key, priv->settings->get(key)));
 
122
    QVariant value = priv->settings->get(key);
 
123
    this->insert(key, value);
 
124
    Q_EMIT(changed(key, value));
123
125
}
124
126
 
125
127
QVariant GSettingsQml::updateValue(const QString& key, const QVariant &value)