[PATCH] Ticket #2415: keep active state of editor before final decision about quit.

Andrew Borodin aborodin на vmail.ru
Пн Дек 6 12:09:56 UTC 2010


Signed-off-by: Andrew Borodin <aborodin at vmail.ru>
---
 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


--/04w6evG8XlLl3ft--


Подробная информация о списке рассылки Sisyphus