From 02dbed75b4951bb2c2ec6f3b5b4a50e0fbce75c6 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 8 Nov 2021 17:38:59 +0100 Subject: [PATCH] ProjectExplorer: Take only changed toolchains into account ... when updating after the user pressed "Apply" in the compiler options page. Fixes: QTCREATORBUG-26460 Change-Id: Ibb7774547b36bf64a85a733b54d7927ff09df861 Reviewed-by: Eike Ziller Reviewed-by: David Schulz --- src/plugins/projectexplorer/toolchainoptionspage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/toolchainoptionspage.cpp b/src/plugins/projectexplorer/toolchainoptionspage.cpp index d0f3687d51e..4138079a7c8 100644 --- a/src/plugins/projectexplorer/toolchainoptionspage.cpp +++ b/src/plugins/projectexplorer/toolchainoptionspage.cpp @@ -463,7 +463,7 @@ void ToolChainOptionsWidget::apply() for (TreeItem *item : *parent) { auto tcItem = static_cast(item); Q_ASSERT(tcItem->toolChain); - if (!tcItem->toolChain->isAutoDetected() && tcItem->widget) + if (!tcItem->toolChain->isAutoDetected() && tcItem->widget && tcItem->changed) tcItem->widget->apply(); tcItem->changed = false; tcItem->update();