Revision: 2028 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2028&view=re... Author: alvesh88 Date: 2011-04-14 11:57:41 +0000 (Thu, 14 Apr 2011)
Log Message: ----------- Don't clear the document if encryption is cancelled.
Modified Paths: -------------- trunk/geany-plugins/geanypg/src/encrypt_cb.c
Modified: trunk/geany-plugins/geanypg/src/encrypt_cb.c =================================================================== --- trunk/geany-plugins/geanypg/src/encrypt_cb.c 2011-04-12 19:44:48 UTC (rev 2027) +++ trunk/geany-plugins/geanypg/src/encrypt_cb.c 2011-04-14 11:57:41 UTC (rev 2028) @@ -43,7 +43,7 @@ err = gpgme_op_encrypt(ed->ctx, recp, 0, plain, cipher); if (err != GPG_ERR_NO_ERROR && gpgme_err_code(err) != GPG_ERR_CANCELED) geanypg_show_err_msg(err); - else + else if(gpgme_err_code(err) != GPG_ERR_CANCELED) { rewind(tempfile); geanypg_write_file(tempfile);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org