ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Andrew Borodin <borodin@zarya-k.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] mc
Date: Mon, 6 Dec 2010 15:20:55 +0300
Message-ID: <20101206122055.GE7265@borodin.zarya> (raw)
In-Reply-To: <20101206120044.GD7265@borodin.zarya>

[-- Attachment #1: Type: text/plain, Size: 265 bytes --]

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.

Этот же патч в аттаче.

-- 

С уважением
А. Бородин.

[-- Attachment #2: 0001-Ticket-2415-keep-active-state-of-editor-before-final.patch --]
[-- Type: text/plain, Size: 883 bytes --]

>From afeacf23bc80884576f4f54e38ce4575f7350be1 Mon Sep 17 00:00:00 2001
From: Andrew Borodin <aborodin@vmail.ru>
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 <aborodin@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


  reply	other threads:[~2010-12-06 12:20 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-02 23:18 Igor Zubkov
2010-12-02 23:32 ` Dmitry V. Levin
2010-12-03  0:23 ` Mikhail Efremov
2010-12-03  6:35   ` Sergey
2010-12-03  8:48     ` Alex Negulescu
2010-12-03 14:02       ` Sergey
2010-12-03 14:23         ` Mikhail Efremov
2010-12-03 14:35           ` Sergey
2010-12-05  7:35           ` Sergey
2010-12-05  8:32             ` Alex Negulescu
2010-12-05  9:20               ` Sergey
2010-12-05  9:39                 ` Alex Negulescu
2010-12-05 12:18             ` Денис Смирнов
2010-12-05 12:34               ` Sergey
2010-12-05 17:29                 ` Денис Смирнов
2010-12-05 17:40             ` Андрей Черепанов
2010-12-05 23:38               ` Sergey
2010-12-06 10:11                 ` Андрей Черепанов
2010-12-06 10:19                   ` Sergey
2010-12-06 10:32                     ` Andrew Borodin
2010-12-06 11:23                       ` Sergey
2010-12-06 11:31                       ` Sergey
2010-12-06 12:00                         ` Andrew Borodin
2010-12-06 12:20                           ` Andrew Borodin [this message]
2010-12-06 12:59                             ` Sergey
2010-12-06 13:35                             ` Sergey
2010-12-06 14:17                               ` Andrew Borodin
2010-12-06 14:33                                 ` Sergey
2010-12-07  8:23                                   ` Andrew Borodin
2010-12-07  8:36                                     ` Sergey
2010-12-07  9:49                                       ` Andrew Borodin
2010-12-07 10:32                                         ` Sergey
2010-12-07 10:56                                           ` Andrew Borodin
2010-12-07 11:09                                             ` REAL
2010-12-07 11:18                                               ` Andrew Borodin
2010-12-07 11:33                                                 ` REAL
2010-12-07 11:50                                                   ` Andrew Borodin
2010-12-07 11:26                                             ` Sergey
2010-12-07 11:43                                               ` Vladislav Zavjalov
2010-12-07 11:54                                                 ` Sergey
2010-12-07 12:10                                                   ` Vladislav Zavjalov
2010-12-07 12:19                                                     ` Sergey
2010-12-07 12:49                                                       ` Vladislav Zavjalov
2010-12-07 13:05                                                         ` Vladislav Zavjalov
2010-12-07 13:10                                                           ` Sergey
2010-12-07 13:41                                                           ` Andrew Borodin
2010-12-07 14:34                                                             ` Vladislav Zavjalov
2010-12-08  6:58                                                               ` Andrew Borodin
2010-12-08 21:29                                                                 ` Vladislav Zavjalov
2010-12-09  8:53                                                                 ` Vladislav Zavjalov
2010-12-07 12:09                                                 ` Sergey
2010-12-07 11:57                                               ` Andrew Borodin
2010-12-07  7:07                             ` Sergey
2010-12-07  8:23                               ` Andrew Borodin
2010-12-07  9:00                                 ` Sergey
2010-12-07 10:13                                 ` Andrew Borodin
2010-12-07 13:34                               ` Sergey
2010-12-06 10:42                     ` Андрей Черепанов
2010-12-06 11:16                       ` Sergey
2010-12-03  6:43   ` Anton Farygin
2010-12-03  9:15     ` Ildar Mulyukov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101206122055.GE7265@borodin.zarya \
    --to=borodin@zarya-k.ru \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git