all editing cases I can think of now work

This commit is contained in:
Ashley Hughes 2014-03-27 15:00:35 +00:00
parent 56447ad0b5
commit 7a2d880c4d

View File

@ -503,7 +503,7 @@ public class PgpKeyOperation {
user_id_index = 0;
for (String userId : saveParcel.userIDs) {
String orig_id = saveParcel.originalIDs.get(user_id_index);
if (!orig_id.equals(saveParcel.originalPrimaryID) && !saveParcel.primaryIDChanged) {
if (!(orig_id.equals(saveParcel.originalPrimaryID) && !saveParcel.primaryIDChanged)) {
Iterator<PGPSignature> sigs = masterPublicKey.getSignaturesForID(userId); //TODO: make sure this iterator only has signatures we are interested in
while (sigs.hasNext()) {
PGPSignature sig = sigs.next();