From patchwork Mon Jun 29 15:30:17 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: 11631793 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 09747161F for ; Mon, 29 Jun 2020 19:35:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D58E1206A1 for ; Mon, 29 Jun 2020 19:35:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593459337; bh=iCNVEYT0btqHC0D3l6LW31GrcM8Zir8v9HVDlG+Dwyw=; h=From:Cc:Subject:Date:In-Reply-To:References:To:List-ID:From; b=HRT3l9c7xLMLnE0i7rw1s38n6guEga2CFNdrncRfm6LCGB8kLqFoQn+UALzck5Kj9 kJAeq1Y/80oawKQ1C9C/CmOaCnXJ/8O6TFbMrsa9GneIyZUjZKLqDe0mUoW1+HJ+xv qS/h3UsnsxcLJ9Bif7d2nYldGh+o/cLlvLCIfbT4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729876AbgF2Tfg (ORCPT ); Mon, 29 Jun 2020 15:35:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:44030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730741AbgF2TfP (ORCPT ); Mon, 29 Jun 2020 15:35:15 -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 1FDB1247FF; Mon, 29 Jun 2020 15:30:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593444620; bh=iCNVEYT0btqHC0D3l6LW31GrcM8Zir8v9HVDlG+Dwyw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AKVhp77ZLk6f5RgxsDdpH7/g2Oo73M93U/mKo1eBtd+kvgLbYf04xgvGtM4ng5UHP ppFkErIdL+9mfzMTMeScfJ0rH63c+qmD+7XdAl5V4DLkGfSsroCyGacQ1RgY6fktnw rwLaA4dQT9E/NypyIzcyq5mbb0aLhn+TokJ41fbM= Received: from mchehab by mail.kernel.org with local (Exim 4.93) (envelope-from ) id 1jpvje-007CT4-5V; Mon, 29 Jun 2020 17:30:18 +0200 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , Masahiro Yamada , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] kconfig: qconf: don't show goback button on splitMode Date: Mon, 29 Jun 2020 17:30:17 +0200 Message-Id: <781cc3dc06dfe179f19c8aca8068c14890bace52.1593444492.git.mchehab+huawei@kernel.org> 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 d0bcc0b717f0..f49fbac91995 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) {