close streams more consistently (outside of encrypt/decrypt), force a new output filename guess if the ASCII armour checkbox state changes

This commit is contained in:
Thialfihar
2010-05-04 14:27:31 +00:00
parent e542c37eb3
commit 6b52878056
4 changed files with 22 additions and 8 deletions

View File

@@ -1314,7 +1314,9 @@ public class Apg {
}
compressGen.close();
encryptOut.close();
out.close();
if (armored) {
armorOut.close();
}
progress.setProgress("done.", 100, 100);
}
@@ -1625,8 +1627,6 @@ public class Apg {
}
}
out.close();
if (signature != null) {
progress.setProgress("verifying signature...", 80, 100);
PGPSignatureList signatureList = (PGPSignatureList) plainFact.nextObject();