~lukas-kde/gsettings-qt/queued-processing

« back to all changes in this revision

Viewing changes to GSettings/gsettings-qml.cpp

  • Committer: Lukáš Tinkl
  • Date: 2015-06-02 10:10:03 UTC
  • Revision ID: lukas@kde.org-20150602101003-1ocpglbdsrtma9r0
resort to forcing a queued connection on the changed() signal

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
    if (this->value(key) != value) {
153
153
        this->insert(key, value);
154
154
        Q_EMIT(changed(key, value));
155
 
 
156
 
        // send QEvent::DeferredDelete to avoid leaks
157
 
        // cf. https://bugreports.qt.io/browse/QTBUG-32859 and http://pad.lv/1460970
158
 
        QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete);
159
155
    }
160
156
}
161
157