Bug #2355: don't send while external editor is open
authorRicardo Mones <ricardo@mones.org>
Tue, 24 Nov 2015 09:26:18 +0000 (10:26 +0100)
committerRicardo Mones <ricardo@mones.org>
Tue, 24 Nov 2015 09:26:18 +0000 (10:26 +0100)
src/compose.c

index f57a0df34fb32c0293b788ac2c5cb0291a03cd8b..2e41dbee1af533dfc7d3b98841902e1b3461ae09 100644 (file)
@@ -9932,6 +9932,12 @@ static void compose_send_cb(GtkAction *action, gpointer data)
 {
        Compose *compose = (Compose *)data;
 
+#ifdef G_OS_UNIX
+       if (compose->exteditor_tag != -1) {
+               debug_print("ignoring send: external editor still open\n");
+               return;
+       }
+#endif
        if (prefs_common.work_offline && 
            !inc_offline_should_override(TRUE,
                _("Claws Mail needs network access in order "