aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-09-11 06:34:08 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-09-11 06:34:08 +0800
commitb5297de4c44a76856bd3e0385bd8ba36a40c18d1 (patch)
treed9bf978f9fa490e30fb09a6bbdfdb381101defee /composer/e-msg-composer.c
parent2be48d88552a96878124e71efdbd00e8601da4fe (diff)
downloadgsoc2013-evolution-b5297de4c44a76856bd3e0385bd8ba36a40c18d1.tar
gsoc2013-evolution-b5297de4c44a76856bd3e0385bd8ba36a40c18d1.tar.gz
gsoc2013-evolution-b5297de4c44a76856bd3e0385bd8ba36a40c18d1.tar.bz2
gsoc2013-evolution-b5297de4c44a76856bd3e0385bd8ba36a40c18d1.tar.lz
gsoc2013-evolution-b5297de4c44a76856bd3e0385bd8ba36a40c18d1.tar.xz
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/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c4
1 files changed, 2 insertions, 2 deletions
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",