[evolution] Bug #593872 - Forgets which signature is assigned to which account



commit 5cbcdddfe769c0df81122b8d4944507f4739a618
Author: Milan Crha <mcrha redhat com>
Date:   Wed Sep 2 18:32:54 2009 +0200

    Bug #593872 - Forgets which signature is assigned to which account

 e-util/e-signature.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-signature.c b/e-util/e-signature.c
index 1b22dba..2d8da48 100644
--- a/e-util/e-signature.c
+++ b/e-util/e-signature.c
@@ -445,8 +445,13 @@ e_signature_set_from_xml (ESignature *signature, const gchar *xml)
 		return FALSE;
 	}
 
-	if (!signature->priv->uid)
-		xml_set_prop (node, "uid", &signature->priv->uid);
+	buf = NULL;
+	xml_set_prop (node, "uid", &buf);
+
+	if (buf && *buf) {
+		g_free (signature->priv->uid);
+		signature->priv->uid = buf;
+	}
 
 	changed |= xml_set_prop (node, "name", &signature->priv->name);
 	changed |= xml_set_bool (node, "auto", &signature->priv->autogenerated);



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