From 650aa8c102725cb96dac7ce46a32a8c9f3d4dac7 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 16 Jan 2011 14:03:02 +0100 Subject: [PATCH] Don't error when saving addons config in test --- extensions/addons.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.5