From patchwork Tue Jun 30 06:26:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 11633243 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BB98B92A for ; Tue, 30 Jun 2020 06:27:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 998FB20759 for ; Tue, 30 Jun 2020 06:27:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593498434; bh=xcriatRX5oAW76hSmZ8ro5YavRMjfjxoExGQJ1O33Ek=; h=From:Cc:Subject:Date:In-Reply-To:References:To:List-ID:From; b=hPvahnKqDHptjykjBS4boC/wyu48zfTFEivoqyqnppHgS3A7mdhksIEGuVZNod0AY r32gcNjrTBD7PJXpXzozohJh46QTJrT17RKJnAi/c7LD8FSnmMiNpoQB5IQ4edIEWS YmMp2amhlHMYPHE/wStXgZLX9J8zkpEIROphIqIg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730146AbgF3G1C (ORCPT ); Tue, 30 Jun 2020 02:27:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:55722 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730048AbgF3G0q (ORCPT ); Tue, 30 Jun 2020 02:26:46 -0400 Received: from mail.kernel.org (ip5f5ad5c5.dynamic.kabel-deutschland.de [95.90.213.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BADBC207FB; Tue, 30 Jun 2020 06:26:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593498405; bh=xcriatRX5oAW76hSmZ8ro5YavRMjfjxoExGQJ1O33Ek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OuZBULVpD4h2IFt14O/+GNMZfJxt0nP53Ofn+fMRawivCx22TtGrRwu5Z5r0ymo/Q UZ24hd1LiWvvN5FWxCurhXI3+mL5N0QvQO50f/d2T/H7zJpfVQ5DBelQHsOrfzGLvg x2ZVb+nUurAENaVgPxiPUH+yCp/wISaIa01M1690= Received: from mchehab by mail.kernel.org with local (Exim 4.93) (envelope-from ) id 1jq9j9-008WbB-Tc; Tue, 30 Jun 2020 08:26:43 +0200 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , Maxim Levitsky , Masahiro Yamada , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 6/7] kconfig: qconf: don't show goback button on splitMode Date: Tue, 30 Jun 2020 08:26:40 +0200 Message-Id: X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org the goback button does nothing on splitMode. So, why display it? Signed-off-by: Mauro Carvalho Chehab --- scripts/kconfig/qconf.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index e43fe4dcd4e7..6a327b69ff5f 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc @@ -437,9 +437,10 @@ void ConfigList::updateList(ConfigItem* item) if (rootEntry != &rootmenu && (mode == singleMode || (mode == symbolMode && rootEntry->parent != &rootmenu))) { item = (ConfigItem *)topLevelItem(0); - if (!item) + if (!item && mode != symbolMode) { item = new ConfigItem(this, 0, true); - last = item; + last = item; + } } if ((mode == singleMode || (mode == symbolMode && !(rootEntry->flags & MENU_ROOT))) && rootEntry->sym && rootEntry->prompt) {