>From afeacf23bc80884576f4f54e38ce4575f7350be1 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Mon, 6 Dec 2010 15:09:56 +0300 Subject: [PATCH] Ticket #2415: keep active state of editor before final decision about quit. Signed-off-by: Andrew Borodin --- src/editor/editwidget.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/editor/editwidget.c b/src/editor/editwidget.c index 4500c97..82a7b09 100644 --- a/src/editor/editwidget.c +++ b/src/editor/editwidget.c @@ -217,8 +217,9 @@ edit_dialog_callback (Dlg_head *h, Widget *sender, return MSG_HANDLED; case DLG_VALIDATE: - if (!edit_ok_to_exit (edit)) - h->running = 1; + h->running = 1; /* don't stop the dialog before final decision */ + if (edit_ok_to_exit (edit)) + h->running = 0; return MSG_HANDLED; default: -- 1.6.4.4