changeset 2614:242111977be2

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
author Colin Clark <colin.clark@cclark.uk>
date Sat, 23 Sep 2017 11:01:45 +0100
parents e9026a22ed21
children 919315fcd507
files src/utilops.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/utilops.c	Sat Sep 23 10:53:10 2017 +0100
+++ b/src/utilops.c	Sat Sep 23 11:01:45 2017 +0100
@@ -918,6 +918,10 @@
 			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