Commit 435e952b authored by spiiroin's avatar spiiroin

[config] Check correct paramter in config_value_changed() predicate

The function compares old value with ini file section name, which leads
to practically every new value being evaluated different from previous one.

Check old value vs new value instead.
Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
parent 20abe602
......@@ -362,7 +362,7 @@ int config_value_changed(GKeyFile *settingsfile, const char *entry, const char *
char *old = g_key_file_get_string(settingsfile, entry, key, NULL);
if (old)
{
gboolean unchanged = (g_strcmp0(old, entry) == 0);
gboolean unchanged = (g_strcmp0(old, new_value) == 0);
g_free(old);
if (unchanged)
{
......
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