When changing default value, change value too, if it equals default

master
Yevgen Muntyan 2006-04-30 16:37:33 -05:00
parent b837b5dc92
commit 6c103ca9bf
1 changed files with 4 additions and 0 deletions

View File

@ -582,7 +582,11 @@ item_set_default (PrefsItem *item,
if (!moo_value_equal (value, &item->default_value))
{
if (moo_value_equal (&item->default_value, &item->value))
g_value_copy (value, &item->value);
g_value_copy (value, &item->default_value);
return TRUE;
}