From: Christian Dywan Date: Sun, 16 Jan 2011 13:03:02 +0000 (+0100) Subject: Don't error when saving addons config in test X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=650aa8c102725cb96dac7ce46a32a8c9f3d4dac7;p=midori Don't error when saving addons config in test --- diff --git a/extensions/addons.c b/extensions/addons.c index 8fcdee3c..6839ed48 100644 --- a/extensions/addons.c +++ b/extensions/addons.c @@ -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);