diff options
author | Milan Crha <mcrha@redhat.com> | 2009-09-03 00:36:46 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-09-03 00:36:46 +0800 |
commit | 91e5b11343eec5c845829b155148b69c18c4e9cf (patch) | |
tree | dd3d0dd8d4da7c28c9e43db52df725da8dc39104 | |
parent | b2ee00c71b690195bcc72b0e365a5857828ec704 (diff) | |
download | gsoc2013-evolution-91e5b11343eec5c845829b155148b69c18c4e9cf.tar gsoc2013-evolution-91e5b11343eec5c845829b155148b69c18c4e9cf.tar.gz gsoc2013-evolution-91e5b11343eec5c845829b155148b69c18c4e9cf.tar.bz2 gsoc2013-evolution-91e5b11343eec5c845829b155148b69c18c4e9cf.tar.lz gsoc2013-evolution-91e5b11343eec5c845829b155148b69c18c4e9cf.tar.xz gsoc2013-evolution-91e5b11343eec5c845829b155148b69c18c4e9cf.tar.zst gsoc2013-evolution-91e5b11343eec5c845829b155148b69c18c4e9cf.zip |
Bug #593872 - Forgets which signature is assigned to which account
-rw-r--r-- | 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 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); |