diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-09-11 06:34:08 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-09-11 06:34:08 +0800 |
commit | b5297de4c44a76856bd3e0385bd8ba36a40c18d1 (patch) | |
tree | d9bf978f9fa490e30fb09a6bbdfdb381101defee /composer | |
parent | 2be48d88552a96878124e71efdbd00e8601da4fe (diff) | |
download | gsoc2013-evolution-b5297de4c44a76856bd3e0385bd8ba36a40c18d1.tar.gz gsoc2013-evolution-b5297de4c44a76856bd3e0385bd8ba36a40c18d1.tar.zst gsoc2013-evolution-b5297de4c44a76856bd3e0385bd8ba36a40c18d1.zip |
Make sure that the session is non-NULL. (menu_file_send_cb): And here too.
2001-09-10 Jeffrey Stedfast <fejj@ximian.com>
* 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
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 6 | ||||
-rw-r--r-- | 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,5 +1,11 @@ 2001-09-10 Jeffrey Stedfast <fejj@ximian.com> + * 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 <fejj@ximian.com> + * e-msg-composer.c (build_message): Wrap the S/MIME code in ifdef SMIME_SUPPORTED which isn't defined but by some later version will be. 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", |