diff --git a/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.js b/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.js index 612deea..32a6d53 100644 --- a/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.js +++ b/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.js @@ -1433,16 +1433,15 @@ function(fArguments) { var message = openpgp.message.readArmored(fArguments['message']); } catch(err) { - document.getElementById("privateKeyInput").style.backgroundImage = "url('')"; - this._dialog.setButtonVisible(DwtDialog.CANCEL_BUTTON, true); - this._dialog.setButtonVisible(DwtDialog.OK_BUTTON, true); - try { //one last final try.. var message = openpgp.message.readArmored(OpenPGPZimlet.prototype.quoted_printable_decode(fArguments['message'])); } catch(err) { + document.getElementById("privateKeyInput").style.backgroundImage = "url('')"; + this._dialog.setButtonVisible(DwtDialog.CANCEL_BUTTON, true); + this._dialog.setButtonVisible(DwtDialog.OK_BUTTON, true); //Could not read armored message! this.status(OpenPGPZimlet.lang[7], ZmStatusView.LEVEL_CRITICAL); return;