From 8ee8a244781d1df404c8ab8a6695ee3a63fe53ae Mon Sep 17 00:00:00 2001 From: Ritesh Khadgaray Date: Tue, 8 Sep 2009 11:05:18 +0200 Subject: Bug #586854 - Crash on File->Quit with empty_junk enabled --- modules/mail/e-mail-shell-backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/mail') diff --git a/modules/mail/e-mail-shell-backend.c b/modules/mail/e-mail-shell-backend.c index 681fd68a74..d94d9e318f 100644 --- a/modules/mail/e-mail-shell-backend.c +++ b/modules/mail/e-mail-shell-backend.c @@ -575,7 +575,7 @@ mail_shell_backend_prepare_for_quit_cb (EShell *shell, if (empty_junk) { key = "/apps/evolution/mail/junk/empty_on_exit_days"; empty_days = gconf_client_get_int (client, key, &error); - if (error == NULL) { + if (error != NULL) { g_warning ("%s", error->message); g_clear_error (&error); empty_trash = FALSE; @@ -585,7 +585,7 @@ mail_shell_backend_prepare_for_quit_cb (EShell *shell, if (empty_junk) { key = "/apps/evolution/mail/junk/empty_date"; empty_date = gconf_client_get_int (client, key, &error); - if (error == NULL) { + if (error != NULL) { g_warning ("%s", error->message); g_clear_error (&error); empty_trash = FALSE; -- cgit