From c26c3cc4fd7bd8123ec7b0e6b49dccc3a3aca08b Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sun, 29 Sep 2013 08:54:47 +0400 Subject: [PATCH] (check_file_access): return FALSE if Esc was pressed. edit_query_dialog2() returns (-1) in this case. Signed-off-by: Andrew Borodin --- src/editor/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/edit.c b/src/editor/edit.c index 98c265667..4e9fb2ded 100644 --- a/src/editor/edit.c +++ b/src/editor/edit.c @@ -318,7 +318,7 @@ check_file_access (WEdit * edit, const vfs_path_t * filename_vpath, struct stat g_free (errmsg); errmsg = NULL; - if (act == 1) + if (act != 0) ret = FALSE; }