Bug fix: Failed editor call blocks further actions
authorColin Clark <colin.clark@cclark.uk>
Sat, 23 Sep 2017 10:01:45 +0000 (11:01 +0100)
committerColin Clark <colin.clark@cclark.uk>
Sat, 23 Sep 2017 10:01:45 +0000 (11:01 +0100)
When a call to an external editor fails, cancel the action so that
further editors can be called

src/utilops.c

index 8e40f11..0bc9d0d 100644 (file)
@@ -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