From b5297de4c44a76856bd3e0385bd8ba36a40c18d1 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 10 Sep 2001 22:34:08 +0000 Subject: Make sure that the session is non-NULL. (menu_file_send_cb): And here too. 2001-09-10 Jeffrey Stedfast * e-msg-composer.c (setup_ui): Make sure that the session is non-NULL. (menu_file_send_cb): And here too. svn path=/trunk/; revision=12746 --- composer/ChangeLog | 6 ++++++ composer/e-msg-composer.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/composer/ChangeLog b/composer/ChangeLog index 1c06133db3..45e7d946e4 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,9 @@ +2001-09-10 Jeffrey Stedfast + + * e-msg-composer.c (setup_ui): Make sure that the session is + non-NULL. + (menu_file_send_cb): And here too. + 2001-09-10 Jeffrey Stedfast * e-msg-composer.c (build_message): Wrap the S/MIME code in ifdef diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 733fc6e363..69d63dfb93 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1396,7 +1396,7 @@ menu_file_send_cb (BonoboUIComponent *uic, void *data, const char *path) { - if (camel_session_is_online (session)) + if (session && camel_session_is_online (session)) gtk_signal_emit (GTK_OBJECT (data), signals[SEND]); else gtk_signal_emit (GTK_OBJECT (data), signals[POSTPONE]); @@ -1730,7 +1730,7 @@ setup_ui (EMsgComposer *composer) composer); g_free (default_charset); - if (!camel_session_is_online (session)) { + if (!session || !camel_session_is_online (session)) { /* Move the accelerator from Send to Send Later */ bonobo_ui_component_set_prop ( composer->uic, "/commands/FileSend", -- cgit v1.2.3