fix: DGioSettings::valueChanged never emit

改为DGioSettings后,设置壁纸无效,绑定valueChanged未触发,sender设置错误
This commit is contained in:
ck 2019-10-10 20:21:59 +08:00
parent a15ba2dc73
commit 495e311260

View File

@ -262,7 +262,7 @@ DGioSettings::DGioSettings(const QString& schemaId, const QString& path, QObject
path.toUtf8().constData());
g_object_get(d_private->settings, "settings-schema", &d_private->schema, nullptr);
d_private->signalHandlerId = g_signal_connect(d_private->settings, "changed", G_CALLBACK(DGioSettingsPrivate::onSettingChanged), d_ptr.data());
d_private->signalHandlerId = g_signal_connect(d_private->settings, "changed", G_CALLBACK(DGioSettingsPrivate::onSettingChanged), d_private.data());
}
DGioSettings::~DGioSettings()