From 495e311260fb046db23042a4306d62ae5f6a3e06 Mon Sep 17 00:00:00 2001 From: ck Date: Thu, 10 Oct 2019 20:21:59 +0800 Subject: [PATCH] fix: DGioSettings::valueChanged never emit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 改为DGioSettings后,设置壁纸无效,绑定valueChanged未触发,sender设置错误 --- gio-qt/source/dgiosettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio-qt/source/dgiosettings.cpp b/gio-qt/source/dgiosettings.cpp index eaf54fd..1c80df7 100644 --- a/gio-qt/source/dgiosettings.cpp +++ b/gio-qt/source/dgiosettings.cpp @@ -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()