From: Ricardo Mones Date: Wed, 24 Aug 2016 10:14:28 +0000 (+0200) Subject: Fix bug #3515: Ctrl-Shift-X opens multiple external editors X-Git-Tag: 3.14.1~109 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=a22303ce00367add653f0b87d8e2d301bb15e9f9;ds=sidebyside Fix bug #3515: Ctrl-Shift-X opens multiple external editors This a known GTK+ bug (passing keypresses of disabled menus) or a mising feature (not providing a way to disable also keypresses). See https://bugzilla.gnome.org/show_bug.cgi?id=656158 --- diff --git a/src/compose.c b/src/compose.c index 82220667f..a4d0d7e82 100644 --- a/src/compose.c +++ b/src/compose.c @@ -10545,6 +10545,12 @@ static void compose_ext_editor_cb(GtkAction *action, gpointer data) { Compose *compose = (Compose *)data; +#ifdef G_OS_UNIX + if (compose->exteditor_tag != -1) { + debug_print("ignoring open external editor: external editor still open\n"); + return; + } +#endif compose_exec_ext_editor(compose); }