Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp140619lqj; Sat, 1 Jun 2024 11:21:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVapwybT3Ol4TiEzHOq/xdxRC/qtNGgsiEmoid/CgSYC2C7PsESyoEVyrx2wfhlJN2pnFGghH9REV9MusxWriu4Vntepeq+pq6HJvYRzg== X-Google-Smtp-Source: AGHT+IHlqs+2CKqhIloGboKcRXbJfS1E8N72vAGuynlZlWAr4BwmS1iQk2WwtkSY5gmiOJJUtygH X-Received: by 2002:a17:906:d62:b0:a5c:d67a:1e17 with SMTP id a640c23a62f3a-a681fe4e26amr321542166b.15.1717266063049; Sat, 01 Jun 2024 11:21:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717266063; cv=pass; d=google.com; s=arc-20160816; b=AUCjYJAGAyhryAe+LMEuzyvxdJ8p/gLERx/h7iYGr+D3/15v+niUJjIOTmCKcAM3jq /zeiku1Ewn25ffVPfgO10TQwVoVzLO2qFTCSBS4v7zarO5A6kuvs7Flx5MneZWOjRzLk VvF0eBJhKjGQPufjYoFb5lUBXV/VVu1PJ/PtODU0qEJBN+sklLM1ODKm0KcTQYfunk2f U/c7tF/wLdEfXyJaUABuCOnCna3uYTZVUdrBW/+coGcFl3xgvr5pgo5R6DDZq10LA+q+ n+RNSZomSZoKvdee+HjG9Wscr7gtCe03jTf+0s/BTqFrqhUNbZnq1o7OmC08mwMXhgky 4M8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=leyTTJs5gAT1dfB6UUQGW4KOBHfbYV1ASEDz4YzFvXg=; fh=oQbvuNnOUeIuBT5siQdg+euUHNNdn+CeEwAg69/1RSo=; b=aaBAOjY5Rx6tFLVcP2zk3r2cN84MRkHg2+k0nqSAss8oC8LVN+x0Tq6AINIiF/00c4 CGwu9n7nhr2o09nehzLBjCMWzN1LM6c3lN3/OGZc8D4xxWLf+WN8tRS/3uYE/2dlpILy RFmh7Io1SgRAR8ytSmw4GVT9vmJQ1lVYGtRC9OvocL0ZiZ2HcAoHUC/sAn+ALY4hlWPh 1CrCMwAMcwbS7HVD5UyiQbiXXe6TRCr9Ylqm51oKP/QNwlCztdjvhuHydH37DkHL2/Aq 2iv+N2plNPjVZMmJ+JXENFCbE/Bq5pI4FNVN5eWMcb5kJToPrCYPXdPfO7bdUuIWZcql 0IHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SQhX8piV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a68c7f71b42si51955666b.718.2024.06.01.11.21.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 11:21:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SQhX8piV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C2FB91F21AD6 for ; Sat, 1 Jun 2024 18:21:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00ACA154C10; Sat, 1 Jun 2024 18:20:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SQhX8piV" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21F63154BF3; Sat, 1 Jun 2024 18:20:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717266051; cv=none; b=FqWRCMEnAsk/TKB3kLnxyvfxT6Ho1G2xX6vsrMrgWwAcuBFiN3tvcwizHg14MkgzQbGo9Gcyebaj3KJP6QvVpsTVdi8pXSIcC5drmTG8s/5fXriK2GQ9KXmsvibg6rHje+Y4fvIAYRQV/NobNUmL5dPcFF7lZYQSitMMVJxsP4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717266051; c=relaxed/simple; bh=Nk5C1FaiT9kwsn9EFyyDDVmPydOKPpYhad1CZ+NAQRg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZHU45hW+jOADv9QLcP1TzXnBFTS6+mD5OLXJv7foC5NoaEwLun4q2G9AO+kxkVaOdzeBPNP3h/QzQqGhjxZsG8pf3kgu8n2rdhbaarbD171wb8wiw9ByMvazCI/pn0hJSe3GtOOEv+8hqYnOqjk8Ji0lDQ4G71uihTd++8g1Mpk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SQhX8piV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 005B4C4AF07; Sat, 1 Jun 2024 18:20:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717266050; bh=Nk5C1FaiT9kwsn9EFyyDDVmPydOKPpYhad1CZ+NAQRg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SQhX8piV+/s9c328uZsUOfQTXSaTcjbJCYh6gR6HDs1qhl3eWy1n7sEJapgeehFp0 UyCuquLAS9MOFj5Mja0XEQU/vu3ko2C+FE4UmDDZqdq5RS4VJ0XSgW5TmGtFufq7Pm qcuW0IqTG7BZiaEsv304ktnrKyCZxVDCLD7gtjiJcvXbmMV55rc2ts3lGGU4q4A3Yq LRI0KkbKiAgq4CXFPLJqsYTeuS/TXZQM2s6TBUESFosydKTAuyPIIh6MZULRB9DP+s 51eDzI8No/soav7j4OqdEzgr/GKizaDsz0ctlChmBJTabOsXwnFFw0JD0XGL7gjSGb zfPm3fcXQUg1A== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 2/6] kconfig: qconf: remove initial call to conf_changed() Date: Sun, 2 Jun 2024 03:20:39 +0900 Message-Id: <20240601182043.876249-2-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240601182043.876249-1-masahiroy@kernel.org> References: <20240601182043.876249-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit If any CONFIG option is changed while loading the .config file, conf_read() calls conf_set_changed(true) and then the conf_changed() callback. With conf_read() moved after window initialization, the explicit conf_changed() call can be removed. Signed-off-by: Masahiro Yamada --- scripts/kconfig/qconf.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index c6c42c0f4e5d..e62e862ea283 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc @@ -1397,8 +1397,6 @@ ConfigMainWindow::ConfigMainWindow(void) conf_set_changed_callback(conf_changed); - // Set saveAction's initial state - conf_changed(); configname = xstrdup(conf_get_configname()); QAction *saveAsAction = new QAction("Save &As...", this); @@ -1904,7 +1902,6 @@ int main(int ac, char** av) conf_parse(name); fixup_rootmenu(&rootmenu); - conf_read(NULL); //zconfdump(stdout); configApp = new QApplication(ac, av); @@ -1916,6 +1913,9 @@ int main(int ac, char** av) //zconfdump(stdout); configApp->connect(configApp, SIGNAL(lastWindowClosed()), SLOT(quit())); configApp->connect(configApp, SIGNAL(aboutToQuit()), v, SLOT(saveSettings())); + + conf_read(NULL); + v->show(); configApp->exec(); -- 2.40.1