Handle gconf errors better for string values in preferences.

This commit is contained in:
Tomas Frydrych 2009-02-03 10:15:23 +00:00
parent f4ecc9bab8
commit b0cc2a8614

View File

@ -571,7 +571,13 @@ handle_preference_init_string (void)
value = gconf_client_get_string (default_client, value = gconf_client_get_string (default_client,
cursor->key, cursor->key,
&error); &error);
cleanup_error (&error);
if (error || !value)
{
cleanup_error (&error);
++cursor;
continue;
}
if (cursor->handler) if (cursor->handler)
{ {