aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@src.gnome.org>2000-08-03 23:35:09 +0800
committerPeter Williams <peterw@src.gnome.org>2000-08-03 23:35:09 +0800
commit7792032178886cb9eafaddaa7b45895766f42f16 (patch)
tree05716206c83253abe1a31a548a1c0178fc953e05 /mail/mail-ops.c
parentc63dfc2f5181fe3e6f43c82e1ae4b6d0b694d942 (diff)
downloadgsoc2013-evolution-7792032178886cb9eafaddaa7b45895766f42f16.tar
gsoc2013-evolution-7792032178886cb9eafaddaa7b45895766f42f16.tar.gz
gsoc2013-evolution-7792032178886cb9eafaddaa7b45895766f42f16.tar.bz2
gsoc2013-evolution-7792032178886cb9eafaddaa7b45895766f42f16.tar.lz
gsoc2013-evolution-7792032178886cb9eafaddaa7b45895766f42f16.tar.xz
gsoc2013-evolution-7792032178886cb9eafaddaa7b45895766f42f16.tar.zst
gsoc2013-evolution-7792032178886cb9eafaddaa7b45895766f42f16.zip
Check for identity before sending ; remove gconf_init call
svn path=/trunk/; revision=4505
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 76030e996a..036dd28a2b 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -519,6 +519,17 @@ composer_send_cb (EMsgComposer *composer, gpointer data)
config = mail_config_fetch ();
+ if (!check_configured() || !config->ids) {
+ GtkWidget *message;
+
+ message = gnome_warning_dialog_parented (_("You need to configure an identity\n"
+ "before you can send mail."),
+ gtk_widget_get_ancestor (GTK_WIDGET (composer),
+ GTK_TYPE_WINDOW));
+ gnome_dialog_run_and_close (GNOME_DIALOG (message));
+ return;
+ }
+
if (!from) {
CamelInternetAddress *ciaddr;