From 86405b9df271184c9feb49e2e9a73b0205d0d87d Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Sat, 23 Sep 2017 11:01:45 +0100 Subject: [PATCH] Bug fix: Failed editor call blocks further actions When a call to an external editor fails, cancel the action so that further editors can be called --- src/utilops.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utilops.c b/src/utilops.c index 8e40f11c..0bc9d0db 100644 --- a/src/utilops.c +++ b/src/utilops.c @@ -918,6 +918,10 @@ void file_util_perform_ci(UtilityData *ud) gchar *text = g_strdup_printf(_("%s\nUnable to start external command.\n"), editor_get_error_str(flags)); file_util_warning_dialog(ud->messages.fail, text, GTK_STOCK_DIALOG_ERROR, NULL); g_free(text); + + ud->gd = NULL; + ud->phase = UTILITY_PHASE_CANCEL; + file_util_dialog_run(ud); } } else -- 2.20.1