aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-09-03 00:32:54 +0800
committerMilan Crha <mcrha@redhat.com>2009-09-03 00:32:54 +0800
commit5cbcdddfe769c0df81122b8d4944507f4739a618 (patch)
tree97ca77036653ae01f7c1fbecb3a3c6de925b344e /e-util
parent586725125ff9c6a7c8fc2f13c704305d5a6dda78 (diff)
downloadgsoc2013-evolution-5cbcdddfe769c0df81122b8d4944507f4739a618.tar
gsoc2013-evolution-5cbcdddfe769c0df81122b8d4944507f4739a618.tar.gz
gsoc2013-evolution-5cbcdddfe769c0df81122b8d4944507f4739a618.tar.bz2
gsoc2013-evolution-5cbcdddfe769c0df81122b8d4944507f4739a618.tar.lz
gsoc2013-evolution-5cbcdddfe769c0df81122b8d4944507f4739a618.tar.xz
gsoc2013-evolution-5cbcdddfe769c0df81122b8d4944507f4739a618.tar.zst
gsoc2013-evolution-5cbcdddfe769c0df81122b8d4944507f4739a618.zip
Bug #593872 - Forgets which signature is assigned to which account
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-signature.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/e-util/e-signature.c b/e-util/e-signature.c
index 1b22dbafa0..2d8da48c12 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);