Updating branch refs/heads/master
         to 650aa8c102725cb96dac7ce46a32a8c9f3d4dac7 (commit)
       from f5927ec5d4a485dd8e69cf0cf5651d4494aa1e32 (commit)

commit 650aa8c102725cb96dac7ce46a32a8c9f3d4dac7
Author: Christian Dywan <[email protected]>
Date:   Sun Jan 16 14:03:02 2011 +0100

    Don't error when saving addons config in test

 extensions/addons.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/extensions/addons.c b/extensions/addons.c
index 8fcdee3..6839ed4 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);
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to