From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Virus-Scanned: by AV scanner Date: Mon, 6 Dec 2010 15:20:55 +0300 From: Andrew Borodin To: ALT Linux Sisyphus discussions Message-ID: <20101206122055.GE7265@borodin.zarya> References: <201012061319.47307.a_s_y@sama.ru> <20101206103228.GC7265@borodin.zarya> <201012061431.52224.a_s_y@sama.ru> <20101206120044.GD7265@borodin.zarya> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20101206120044.GD7265@borodin.zarya> User-Agent: Mutt/1.4.2.3i Subject: Re: [sisyphus] mc X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Sisyphus discussions List-Id: ALT Linux Sisyphus discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Dec 2010 12:19:12 -0000 Archived-At: List-Archive: List-Post: --/04w6evG8XlLl3ft Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Mon, Dec 06, 2010 at 03:00:44PM +0300, Andrew Borodin wrote: > Патч для 4.7.0.10 сейчас пришлю. http://www.midnight-commander.org/changeset/afeacf23bc80884576f4f54e38ce4575f7350be1 C'pull'ьте 4.7.0-stable. Этот же патч в аттаче. -- С уважением А. Бородин. --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-Ticket-2415-keep-active-state-of-editor-before-final.patch" >>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 --/04w6evG8XlLl3ft--