Added work offline availability.
[claws.git] / src / compose.c
index 67526467eaf15ad809145e7f22a3eb6db641b9bc..b7fcada67dc467ca37be794b5453abb5715caa07 100644 (file)
@@ -5919,6 +5919,12 @@ static void compose_send_cb(gpointer data, guint action, GtkWidget *widget)
 {
        Compose *compose = (Compose *)data;
        gint val;
+       
+       if (prefs_common.work_offline)
+               if (alertpanel(_("Offline warning"), 
+                              _("You're working offline. Override?"),
+                              _("Yes"), _("No"), NULL) != G_ALERTDEFAULT)
+               return;
 
        val = compose_send(compose);