[evolution] fix bgo#625847 - make signatures work again.



commit 50a0719a8fc17aaddf0f046b5081c31a28eb7981
Author: Michael Meeks <michael meeks novell com>
Date:   Fri Aug 6 16:53:17 2010 +0100

    fix bgo#625847 - make signatures work again.

 e-util/e-signature.c |   37 ++++++++++++++++++-------------------
 1 files changed, 18 insertions(+), 19 deletions(-)
---
diff --git a/e-util/e-signature.c b/e-util/e-signature.c
index 6eb84c3..cc699a0 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]