Commit 57cc9bd8 authored by Fabian Vogt's avatar Fabian Vogt
Browse files

Make sure to actually commit GSettings changes

g_settings_set_* is async, so make sure the change is actually performed before
returning and eventually exiting. This mostly affected the gtk_theme update
binary, because that isn't long running unlike the kded module.

(cherry picked from commit 6b2c2110)
parent 447ae7d1
......@@ -39,12 +39,14 @@ void ConfigEditor::setGtk3ConfigValueDconf(const QString &paramName, bool paramV
{
g_autoptr(GSettings) gsettings = g_settings_new(category.toUtf8().constData());
g_settings_set_boolean(gsettings, paramName.toUtf8().constData(), paramValue);
g_settings_sync();
}
void ConfigEditor::setGtk3ConfigValueDconf(const QString &paramName, const QString &paramValue, const QString &category)
{
g_autoptr(GSettings) gsettings = g_settings_new(category.toUtf8().constData());
g_settings_set_string(gsettings, paramName.toUtf8().constData(), paramValue.toUtf8().constData());
g_settings_sync();
}
void ConfigEditor::setGtk3ConfigValueSettingsIni(const QString &paramName, const QString &paramValue)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment