aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-signature.c
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2010-08-06 23:53:17 +0800
committerMichael Meeks <michael.meeks@novell.com>2010-08-06 23:53:17 +0800
commit50a0719a8fc17aaddf0f046b5081c31a28eb7981 (patch)
tree6dd7b4c033177a76c22e9b2121b9873549c92cd9 /e-util/e-signature.c
parent601c5fe5a0b1efac46832dd0e63131d77afae429 (diff)
downloadgsoc2013-evolution-50a0719a8fc17aaddf0f046b5081c31a28eb7981.tar.gz
gsoc2013-evolution-50a0719a8fc17aaddf0f046b5081c31a28eb7981.tar.zst
gsoc2013-evolution-50a0719a8fc17aaddf0f046b5081c31a28eb7981.zip
fix bgo#625847 - make signatures work again.
Diffstat (limited to 'e-util/e-signature.c')
-rw-r--r--e-util/e-signature.c37
1 files changed, 18 insertions, 19 deletions
diff --git a/e-util/e-signature.c b/e-util/e-signature.c
index 6eb84c3704..cc699a0438 100644
--- a/e-util/e-signature.c
+++ b/e-util/e-signature.c
@@ -493,28 +493,27 @@ e_signature_set_from_xml (ESignature *signature, const gchar *xml)
}
break;
}
-
- /* If the signature is not a script, replace the directory
- * part with the current signatures directory. This makes
- * moving the signatures directory transparent. */
- if (!e_signature_get_is_script (signature)) {
- const gchar *user_data_dir;
- gchar *basename;
- gchar *filename;
-
- user_data_dir = e_get_user_data_dir ();
-
- filename = signature->priv->filename;
- basename = g_path_get_basename (filename);
- signature->priv->filename = g_build_filename (
- user_data_dir, "signatures", basename, NULL);
- g_free (basename);
- g_free (filename);
- }
-
cur = cur->next;
}
+ /* If the signature is not a script, replace the directory
+ * part with the current signatures directory. This makes
+ * moving the signatures directory transparent. */
+ if (!e_signature_get_is_script (signature)) {
+ const gchar *user_data_dir;
+ gchar *basename;
+ gchar *filename;
+
+ user_data_dir = e_get_user_data_dir ();
+
+ filename = signature->priv->filename;
+ basename = g_path_get_basename (filename);
+ signature->priv->filename = g_build_filename (
+ user_data_dir, "signatures", basename, NULL);
+ g_free (basename);
+ g_free (filename);
+ }
+
xmlFreeDoc (doc);
return changed;