forked from mirrors/gio-qt
fix: DGioSettings::valueChanged never emit
改为DGioSettings后,设置壁纸无效,绑定valueChanged未触发,sender设置错误
This commit is contained in:
parent
a15ba2dc73
commit
495e311260
@ -262,7 +262,7 @@ DGioSettings::DGioSettings(const QString& schemaId, const QString& path, QObject
|
|||||||
path.toUtf8().constData());
|
path.toUtf8().constData());
|
||||||
|
|
||||||
g_object_get(d_private->settings, "settings-schema", &d_private->schema, nullptr);
|
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()
|
DGioSettings::~DGioSettings()
|
||||||
|
Loading…
Reference in New Issue
Block a user