[evolution] Bug 620628 - Checkbox in vfolder deletion prompt is saved backwards



commit b3cdfb6bad5cad0932b02fa049da0fcab66a9603
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Jun 5 13:01:41 2010 -0400

    Bug 620628 - Checkbox in vfolder deletion prompt is saved backwards

 mail/e-mail-reader-utils.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c
index f50aea7..566d2e7 100644
--- a/mail/e-mail-reader-utils.c
+++ b/mail/e-mail-reader-utils.c
@@ -115,11 +115,11 @@ e_mail_reader_confirm_delete (EMailReader *reader)
 
 	response = gtk_dialog_run (GTK_DIALOG (dialog));
 
-	if (response == GTK_RESPONSE_OK)
+	if (response != GTK_RESPONSE_DELETE_EVENT)
 		e_shell_settings_set_boolean (
 			shell_settings,
 			"mail-prompt-delete-in-vfolder",
-			gtk_toggle_button_get_active (
+			!gtk_toggle_button_get_active (
 			GTK_TOGGLE_BUTTON (check_button)));
 
 	gtk_widget_destroy (dialog);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]