Author: Wener Koch <wk@gnupg.org>
Description: Fix the handling of windows close button in confirmation dialogs.
 * src/gpaexportserverop.c (confirm_send): Only act upon the Yes button.
 * src/gpgmetools.c (check_overwriting): Ditto.
 .
 Checking for GTK_RESPONSE_NO was a bad idea because that catches only
 the No button and no other events, like the window's close button.
 .
 Minor modification to make it apply to the version of GPA in Debian
 Stable.
Origin: upstream, http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpa.git;a=commit;h=071ed43fac92c68c46a1a8fb19a435eebb8927e6
Bug-Debian: http://bugs.debian.org/820342
--- a/src/gpaexportserverop.c
+++ b/src/gpaexportserverop.c
@@ -133,7 +133,7 @@
   gtk_dialog_add_buttons (GTK_DIALOG (msgbox),
 			  _("_Yes"), GTK_RESPONSE_YES,
 			  _("_No"), GTK_RESPONSE_NO, NULL);
-  if (gtk_dialog_run (GTK_DIALOG (msgbox)) == GTK_RESPONSE_NO)
+  if (gtk_dialog_run (GTK_DIALOG (msgbox)) != GTK_RESPONSE_YES)
     {
       gtk_widget_destroy (msgbox);
       return FALSE;
--- a/src/gpgmetools.c
+++ b/src/gpgmetools.c
@@ -174,7 +174,7 @@
       gtk_dialog_add_buttons (GTK_DIALOG (msgbox),
 			      _("_Yes"), GTK_RESPONSE_YES,
 			      _("_No"), GTK_RESPONSE_NO, NULL);
-      if (gtk_dialog_run (GTK_DIALOG (msgbox)) == GTK_RESPONSE_NO)
+      if (gtk_dialog_run (GTK_DIALOG (msgbox)) != GTK_RESPONSE_YES)
 	{
 	  gtk_widget_destroy (msgbox);
 	  return FALSE;
