fix result type for divert-to-card new subkey error

This commit is contained in:
Vincent Breitmoser
2015-07-08 02:28:05 +02:00
parent d9b07625e8
commit 510999c3a2

View File

@@ -978,7 +978,7 @@ public class PgpKeyOperation {
if (isDivertToCard(masterSecretKey)) {
log.add(LogType.MSG_MF_ERROR_DIVERT_NEWSUB, indent +1);
return new PgpEditKeyResult(PgpEditKeyResult.RESULT_CANCELLED, log, null);
return new PgpEditKeyResult(PgpEditKeyResult.RESULT_ERROR, log, null);
}
if (add.mExpiry == null) {