All of lore.kernel.org
 help / color / mirror / Atom feed
From: Erik Andersen <andersen@codepoet.org>
To: zippel@linux-m68k.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [kconfig] Direct use of lxdialog routines by menuconfig (resent,v2)
Date: Wed, 4 Dec 2002 13:43:29 -0700	[thread overview]
Message-ID: <20021204204329.GA29999@codepoet.org> (raw)
In-Reply-To: <20021123095040.GY25628@pasky.ji.cz>

On Sat Nov 23, 2002 at 10:50:40AM +0100, Petr Baudis wrote:
>  		if (menu == &rootmenu) {
> -			cprint(":");
> -			cprint("--- ");
> -			cprint("L");
> -			cprint("Load an Alternate Configuration File");
> -			cprint("S");
> -			cprint("Save Configuration to an Alternate File");
> -		}
> -		stat = exec_conf();
> +			cmake(); cprint_tag(":"); cprint_name("--- ");
> +			cmake(); cprint_tag("L"); cprint_name("Load an Alternate Configuration File");
> +			cmake(); cprint_tag("S"); cprint_name("Save Configuration to an Alternate File");
> +		}
> +		dialog_clear();
> +		stat = dialog_menu(prompt ? prompt : "Main Menu",
> +				menu_instructions, rows, cols, rows - 10,
> +				active_entry, item_no, items);
>  		if (stat < 0)
>  			continue;

You never return from sub-menus.  This last bit should be:

  		if (stat < 0)
- 			continue;
+ 			return;

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--

      parent reply	other threads:[~2002-12-04 20:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-23  9:50 [PATCH] [kconfig] Direct use of lxdialog routines by menuconfig (resent,v2) Petr Baudis
2002-11-24  1:48 ` Roman Zippel
2003-02-05  3:01   ` [PATCH] [kconfig] Direct use of lxdialog routines by menuconfig (v3) Petr Baudis
2003-02-09 22:53     ` Roman Zippel
2002-12-04 20:43 ` Erik Andersen [this message]

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=20021204204329.GA29999@codepoet.org \
    --to=andersen@codepoet.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zippel@linux-m68k.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.