From 1d49d31804d3312de1de2f576d5b6489493b484c Mon Sep 17 00:00:00 2001 From: Kevin Wasserman Date: Mon, 4 Nov 2013 09:34:17 -0500 Subject: [PATCH] Fix identity duplication bug Occured when 'send'ing an identity w/o a password. --- src/moonshot-identity-management-view.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/moonshot-identity-management-view.vala b/src/moonshot-identity-management-view.vala index 1ddb1c8..515b8f9 100644 --- a/src/moonshot-identity-management-view.vala +++ b/src/moonshot-identity-management-view.vala @@ -467,13 +467,14 @@ public class IdentityManagerView : Window { return retval; } - public void send_identity_cb (IdCard identity) + public void send_identity_cb (IdCard id) { + IdCard identity = id; return_if_fail (request_queue.length > 0); candidates = null; var request = this.request_queue.pop_head (); - check_add_password(identity, request, identities_manager); + identity = check_add_password(identity, request, identities_manager); if (this.request_queue.is_empty()) { candidates = null; -- 2.1.4