Don't error when saving addons config in test

This commit is contained in:
Christian Dywan 2011-01-16 14:03:02 +01:00
parent f5927ec5d4
commit 650aa8c102

View file

@ -1632,7 +1632,8 @@ addons_save_settings (MidoriApp* app,
config_file = g_build_filename (config_dir, "addons", NULL);
katze_mkdir_with_parents (config_dir, 0700);
sokoke_key_file_save_to_file (keyfile, config_file, &error);
if (error)
/* If the folder is /, this is a test run, thus no error */
if (error && !g_str_equal (config_dir, "/"))
{
g_warning (_("The configuration of the extension '%s' couldn't be saved: %s\n"),
_("User addons"), error->message);